From 2eb7c5c0374db96e935e6e81cc2dae5112295e1c Mon Sep 17 00:00:00 2001 From: matthewmcgarvey Date: Wed, 5 Jan 2022 20:15:42 -0600 Subject: [PATCH] PR feedback --- src/invidious/database/playlists.cr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/invidious/database/playlists.cr b/src/invidious/database/playlists.cr index 1d846018..7a5f61dc 100644 --- a/src/invidious/database/playlists.cr +++ b/src/invidious/database/playlists.cr @@ -206,13 +206,13 @@ module Invidious::Database::PlaylistVideos PG_DB.exec(request, index) end - def delete_by_playlist(playlist_id : String) + def delete_by_playlist(plid : String) request = <<-SQL DELETE FROM playlist_videos * - WHERE plid = $1; + WHERE plid = $1 SQL - PG_DB.exec(request, playlist_id) + PG_DB.exec(request, plid) end # -------------------