Clean useless database arguments (3/5)

This commit is contained in:
Samantaz Fox
2021-12-07 00:42:55 +01:00
parent c25d664edc
commit 40ed4a0506
7 changed files with 21 additions and 21 deletions

View File

@@ -150,7 +150,7 @@ module Invidious::Routes::API::V1::Authenticated
return error_json(400, "User cannot have more than 100 playlists.")
end
playlist = create_playlist(PG_DB, title, privacy, user)
playlist = create_playlist(title, privacy, user)
env.response.headers["Location"] = "#{HOST_URL}/api/v1/auth/playlists/#{playlist.id}"
env.response.status_code = 201
{

View File

@@ -34,7 +34,7 @@ module Invidious::Routes::API::V1::Misc
end
begin
playlist = get_playlist(PG_DB, plid, locale)
playlist = get_playlist(plid, locale)
rescue ex : InfoException
return error_json(404, ex)
rescue ex