Additional refactor to api and types

This commit is contained in:
jeffvli 2023-04-27 20:34:28 -07:00
parent 17cf624f6a
commit df9464f762
3 changed files with 26 additions and 24 deletions

View file

@ -278,10 +278,7 @@ const createPlaylist = async (args: CreatePlaylistArgs): Promise<CreatePlaylistR
throw new Error('Failed to create playlist');
}
return {
id: res.body.data.id,
name: body.name,
};
return null;
};
const updatePlaylist = async (args: UpdatePlaylistArgs): Promise<UpdatePlaylistResponse> => {
@ -304,9 +301,7 @@ const updatePlaylist = async (args: UpdatePlaylistArgs): Promise<UpdatePlaylistR
throw new Error('Failed to update playlist');
}
return {
id: res.body.data.id,
};
return null;
};
const deletePlaylist = async (args: DeletePlaylistArgs): Promise<DeletePlaylistResponse> => {