mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-18 05:09:29 +00:00
feat: update docs for favorites
This commit is contained in:
@@ -17,7 +17,7 @@ export class RemoveDeckFromFavoritesHandler
|
||||
constructor(private readonly decksRepository: DecksRepository) {}
|
||||
|
||||
async execute(command: RemoveDeckFromFavoritesCommand): Promise<void> {
|
||||
const deck = await this.decksRepository.findDeckById(command.deckId)
|
||||
const deck = await this.decksRepository.findDeckById(command.deckId, command.userId)
|
||||
|
||||
if (!deck) {
|
||||
throw new NotFoundException(`Deck with id ${command.deckId} not found`)
|
||||
|
||||
Reference in New Issue
Block a user