fix: docs

This commit is contained in:
2024-02-24 17:36:13 +01:00
parent 60ef0dfd6c
commit 32757e1dca

View File

@@ -36,7 +36,12 @@ import { Card, CardWithGrade, PaginatedCardsWithGrade } from '../cards/entities/
import { CreateDeckDto, GetAllDecksDto, UpdateDeckDto } from './dto'
import { GetRandomCardDto } from './dto/get-random-card.dto'
import { Deck, DeckWithAuthor, PaginatedDecksWithMaxCardsCount } from './entities/deck.entity'
import {
Deck,
DeckWithAuthor,
PaginatedDecks,
PaginatedDecksWithMaxCardsCount,
} from './entities/deck.entity'
import { MinMaxCards } from './entities/min-max-cards.entity'
import {
CreateCardCommand,
@@ -78,7 +83,7 @@ export class DecksController {
@UseGuards(JwtAuthGuard)
@Version('2')
@Get()
findAllV2(@Query() query: GetAllDecksDto, @Req() req): Promise<PaginatedDecksWithMaxCardsCount> {
findAllV2(@Query() query: GetAllDecksDto, @Req() req): Promise<PaginatedDecks> {
const finalQuery = Pagination.getPaginationData(query)
return this.commandBus.execute(new GetAllDecksV2Command({ ...finalQuery, userId: req.user.id }))