Fix user update for subscription feed

pull/38/head
Omar Roth 2018-07-22 15:35:22 -05:00
rodzic 67de4192f0
commit 8b14a60a32
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1213,7 +1213,7 @@ get "/feed/subscriptions" do |env|
videos = videos[0..max_results]
end
PG_DB.exec("UPDATE users SET notifications = $1 WHERE id = $2", [] of String, user.id)
PG_DB.exec("UPDATE users SET notifications = $1, updated = $2 WHERE id = $3", [] of String, Time.now, user.id)
user.notifications = [] of String
env.set "user", user