mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-23 00:29:53 +05:30
PR feedback
This commit is contained in:
parent
ba0bc72d0b
commit
2eb7c5c037
@ -206,13 +206,13 @@ module Invidious::Database::PlaylistVideos
|
|||||||
PG_DB.exec(request, index)
|
PG_DB.exec(request, index)
|
||||||
end
|
end
|
||||||
|
|
||||||
def delete_by_playlist(playlist_id : String)
|
def delete_by_playlist(plid : String)
|
||||||
request = <<-SQL
|
request = <<-SQL
|
||||||
DELETE FROM playlist_videos *
|
DELETE FROM playlist_videos *
|
||||||
WHERE plid = $1;
|
WHERE plid = $1
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
PG_DB.exec(request, playlist_id)
|
PG_DB.exec(request, plid)
|
||||||
end
|
end
|
||||||
|
|
||||||
# -------------------
|
# -------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user