mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-17 20:59:27 +00:00
add smart random
This commit is contained in:
@@ -10,6 +10,6 @@ export class GetDeckByIdHandler implements ICommandHandler<GetDeckByIdCommand> {
|
||||
constructor(private readonly deckRepository: CardsRepository) {}
|
||||
|
||||
async execute(command: GetDeckByIdCommand) {
|
||||
return await this.deckRepository.findDeckById(command.id)
|
||||
return await this.deckRepository.findCardById(command.id)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user