diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-07-22 15:35:22 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-07-22 15:35:22 -0500 |
| commit | 8b14a60a323b7f9543be6108ad6fb82f4de34140 (patch) | |
| tree | 1fb1b475e40da37f920ba4b0dfd1bbdb744e04bb /src | |
| parent | 67de4192f01c53f7261a1c84080bd2896dd31560 (diff) | |
| download | invidious-8b14a60a323b7f9543be6108ad6fb82f4de34140.tar.gz invidious-8b14a60a323b7f9543be6108ad6fb82f4de34140.tar.bz2 invidious-8b14a60a323b7f9543be6108ad6fb82f4de34140.zip | |
Fix user update for subscription feed
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 6a06635f..c2ba8cbd 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 |
