Clean useless database arguments (4/5)

This commit is contained in:
Samantaz Fox
2021-12-07 02:55:43 +01:00
parent 40ed4a0506
commit d74873fed1
11 changed files with 19 additions and 19 deletions

View File

@@ -60,7 +60,7 @@ def html_to_content(description_html : String)
return description
end
def cache_annotation(db, id, annotations)
def cache_annotation(id, annotations)
if !CONFIG.cache_annotations
return
end
@@ -99,7 +99,7 @@ def create_notification_stream(env, topics, connection_channel)
published = Time.utc - Time::Span.new(days: time_span[0], hours: time_span[1], minutes: time_span[2], seconds: time_span[3])
video_id = TEST_IDS[rand(TEST_IDS.size)]
video = get_video(video_id, PG_DB)
video = get_video(video_id)
video.published = published
response = JSON.parse(video.to_json(locale, nil))
@@ -176,7 +176,7 @@ def create_notification_stream(env, topics, connection_channel)
next
end
video = get_video(video_id, PG_DB)
video = get_video(video_id)
video.published = Time.unix(published)
response = JSON.parse(video.to_json(locale, nil))