From 8b14a60a323b7f9543be6108ad6fb82f4de34140 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 22 Jul 2018 15:35:22 -0500 Subject: [PATCH] Fix user update for subscription feed --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 6a06635f8..c2ba8cbd3 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -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