Fix typo in post webhook

This commit is contained in:
Omar Roth 2019-05-31 10:29:17 -05:00
parent a95958f9f6
commit 86d0de4b0e
No known key found for this signature in database
GPG Key ID: B8254FB7EC3D37F2
1 changed files with 1 additions and 1 deletions

View File

@ -2867,7 +2867,7 @@ post "/feed/webhook/:token" do |env|
video_array = video.to_a
args = arg_array(video_array)
PG_DB.exec("INSERT INTO channel_videos (id, title, published, updated, ucid, author, length_seconds, live_now, premiere_timestamp) VALUES (#{args}) \
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)