fix: update docs

This commit is contained in:
2024-01-20 19:28:22 +01:00
parent 28b5066894
commit 289512bc48
6 changed files with 46 additions and 30 deletions

View File

@@ -26,7 +26,7 @@ import {
import { JwtAuthGuard } from '../auth/guards'
import { UpdateCardDto } from './dto'
import { Card } from './entities/cards.entity'
import { Card, CardWithGrade } from './entities/cards.entity'
import { DeleteCardByIdCommand, GetDeckByIdCommand, UpdateCardCommand } from './use-cases'
@ApiTags('Cards')
@@ -39,7 +39,7 @@ export class CardsController {
@ApiUnauthorizedResponse({ description: 'Unauthorized' })
@ApiNotFoundResponse({ description: 'Card not found' })
@Get(':id')
findOne(@Param('id') id: string): Promise<Card> {
findOne(@Param('id') id: string): Promise<CardWithGrade> {
return this.commandBus.execute(new GetDeckByIdCommand(id))
}