mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
delete_by_playlist_id -> delete_by_playlist
This commit is contained in:
parent
e1219cbdef
commit
ba0bc72d0b
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ module Invidious::Database::Playlists
|
||||||
|
|
||||||
# deletes the given playlist and connected playlist videos
|
# deletes the given playlist and connected playlist videos
|
||||||
def delete(id : String)
|
def delete(id : String)
|
||||||
PlaylistVideos.delete_by_playlist_id(id)
|
PlaylistVideos.delete_by_playlist(id)
|
||||||
request = <<-SQL
|
request = <<-SQL
|
||||||
DELETE FROM playlists *
|
DELETE FROM playlists *
|
||||||
WHERE id = $1
|
WHERE id = $1
|
||||||
|
@ -206,7 +206,7 @@ module Invidious::Database::PlaylistVideos
|
||||||
PG_DB.exec(request, index)
|
PG_DB.exec(request, index)
|
||||||
end
|
end
|
||||||
|
|
||||||
def delete_by_playlist_id(playlist_id)
|
def delete_by_playlist(playlist_id : String)
|
||||||
request = <<-SQL
|
request = <<-SQL
|
||||||
DELETE FROM playlist_videos *
|
DELETE FROM playlist_videos *
|
||||||
WHERE plid = $1;
|
WHERE plid = $1;
|
||||||
|
|
Loading…
Reference in a new issue