Also fix 'to_json' in struct Video

This commit is contained in:
Samantaz Fox
2021-10-29 14:53:06 +02:00
parent 1cb715ac9f
commit 33780f1995
3 changed files with 11 additions and 12 deletions

View File

@@ -206,7 +206,7 @@ def create_notification_stream(env, topics, connection_channel)
video = get_video(video_id, PG_DB)
video.published = published
response = JSON.parse(video.to_json(locale))
response = JSON.parse(video.to_json(locale, nil))
if fields_text = env.params.query["fields"]?
begin
@@ -282,7 +282,7 @@ def create_notification_stream(env, topics, connection_channel)
video = get_video(video_id, PG_DB)
video.published = Time.unix(published)
response = JSON.parse(video.to_json(locale))
response = JSON.parse(video.to_json(locale, nil))
if fields_text = env.params.query["fields"]?
begin