ahmedeid6842/music-store

[Albums] Implement update album

Closed this issue · 0 comments

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
  • Implement updateAlbum service method
    • update the album by the new given properties.