feat: update docs for favorites

This commit is contained in:
2024-05-30 20:59:27 +02:00
parent aba09f5367
commit 5a1d375ada
11 changed files with 47 additions and 21 deletions

View File

@@ -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`)