diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-09-24 13:37:06 -0400 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-09-24 13:38:50 -0400 |
| commit | 4361ea968655f91505c24b83b890f51c1bb938a1 (patch) | |
| tree | 7762f8559a764c42141c6cb9aca2613d12fafdbc /src/invidious.cr | |
| parent | be2ee33273a5fe74700b911f718dc46028539b44 (diff) | |
| download | invidious-4361ea968655f91505c24b83b890f51c1bb938a1.tar.gz invidious-4361ea968655f91505c24b83b890f51c1bb938a1.tar.bz2 invidious-4361ea968655f91505c24b83b890f51c1bb938a1.zip | |
Update DB calls for 0.31.0
Diffstat (limited to 'src/invidious.cr')
| -rw-r--r-- | src/invidious.cr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 90a47efd..20a84625 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1396,7 +1396,7 @@ post "/login" do |env| user_array[4] = user_array[4].to_json args = arg_array(user_array) - PG_DB.exec("INSERT INTO users VALUES (#{args})", user_array) + PG_DB.exec("INSERT INTO users VALUES (#{args})", args: user_array) PG_DB.exec("INSERT INTO session_ids VALUES ($1, $2, $3)", sid, email, Time.utc) view_name = "subscriptions_#{sha256(user.email)}" @@ -2908,7 +2908,7 @@ post "/feed/webhook/:token" do |env| PG_DB.exec("INSERT INTO channel_videos VALUES (#{args}) \ ON CONFLICT (id) DO UPDATE SET title = $2, published = $3, \ updated = $4, ucid = $5, author = $6, length_seconds = $7, \ - live_now = $8, premiere_timestamp = $9, views = $10", video_array) + live_now = $8, premiere_timestamp = $9, views = $10", args: video_array) # Update all users affected by insert if emails.empty? |
