mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-02-19 06:56:12 +00:00
Move DB queries related to 'users' in a separate module (1/2)
This commit is contained in:
@@ -76,7 +76,7 @@ module Invidious::Routes::Watch
|
||||
env.params.query.delete_all("iv_load_policy")
|
||||
|
||||
if watched && !watched.includes? id
|
||||
PG_DB.exec("UPDATE users SET watched = array_append(watched, $1) WHERE email = $2", id, user.as(User).email)
|
||||
Invidious::Database::Users.mark_watched(user.as(User), id)
|
||||
end
|
||||
|
||||
if notifications && notifications.includes? id
|
||||
|
||||
Reference in New Issue
Block a user