[Albums] Implement update album
Closed this issue · 0 comments
ahmedeid6842 commented
Requirment:
At this task artist should be able to update his own album
Done:
- Implement
PATCH /album/:albumId
- validate the new update album using
updateAlbumDTO
- check if current user is logged in using
@AuthGuard
- check if the current user is artist using
@ArtistGuard
- check if the current user is the owner of the album
@AlbumOwnerGuard
- call
updateAlbum
service method
- validate the new update album using
- Implement
updateAlbum
service method- update the album by the new given properties.