mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Fix typo for feed_needs_update
This commit is contained in:
parent
18d66ddded
commit
b3788bc143
2 changed files with 3 additions and 3 deletions
|
@ -2881,7 +2881,7 @@ post "/feed/webhook/:token" do |env|
|
|||
values = "VALUES #{emails.map { |id| %(('#{id}')) }.join(",")}"
|
||||
end
|
||||
|
||||
PG_DB.exec("UPDATE users SET feed_needs_update = true WHERE email = ANY($1)", emails)
|
||||
PG_DB.exec("UPDATE users SET feed_needs_update = true WHERE email = ANY(#{values})")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -205,7 +205,7 @@ def fetch_channel(ucid, db, pull_all_videos = true, locale = nil)
|
|||
values = "VALUES #{emails.map { |id| %(('#{id}')) }.join(",")}"
|
||||
end
|
||||
|
||||
db.exec("UPDATE users SET feed_needs_update = true WHERE email = ANY($1)", emails)
|
||||
db.exec("UPDATE users SET feed_needs_update = true WHERE email = ANY(#{values})")
|
||||
end
|
||||
|
||||
if pull_all_videos
|
||||
|
@ -273,7 +273,7 @@ def fetch_channel(ucid, db, pull_all_videos = true, locale = nil)
|
|||
values = "VALUES #{emails.map { |id| %(('#{id}')) }.join(",")}"
|
||||
end
|
||||
|
||||
db.exec("UPDATE users SET feed_needs_update = true WHERE email = ANY($1)", emails)
|
||||
db.exec("UPDATE users SET feed_needs_update = true WHERE email = ANY(#{values})")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue