Chore: Require OrgId to be specified in delete playlist command (#29117)
This commit is contained in:
@@ -108,7 +108,7 @@ func GetPlaylist(query *models.GetPlaylistByIdQuery) error {
|
||||
}
|
||||
|
||||
func DeletePlaylist(cmd *models.DeletePlaylistCommand) error {
|
||||
if cmd.Id == 0 {
|
||||
if cmd.Id == 0 || cmd.OrgId == 0 {
|
||||
return models.ErrCommandValidationFailed
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user