From ba0bc72d0b05a5a03ccf3d441011cf9ec0929ba4 Mon Sep 17 00:00:00 2001 From: matthewmcgarvey Date: Wed, 5 Jan 2022 19:03:32 -0600 Subject: [PATCH] delete_by_playlist_id -> delete_by_playlist --- src/invidious/database/playlists.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/invidious/database/playlists.cr b/src/invidious/database/playlists.cr index 93f62d10..1d846018 100644 --- a/src/invidious/database/playlists.cr +++ b/src/invidious/database/playlists.cr @@ -23,7 +23,7 @@ module Invidious::Database::Playlists # deletes the given playlist and connected playlist videos def delete(id : String) - PlaylistVideos.delete_by_playlist_id(id) + PlaylistVideos.delete_by_playlist(id) request = <<-SQL DELETE FROM playlists * WHERE id = $1 @@ -206,7 +206,7 @@ module Invidious::Database::PlaylistVideos PG_DB.exec(request, index) end - def delete_by_playlist_id(playlist_id) + def delete_by_playlist(playlist_id : String) request = <<-SQL DELETE FROM playlist_videos * WHERE plid = $1;