From 32757e1dca3ca7944315a54d501fb3683e7d04fc Mon Sep 17 00:00:00 2001 From: andres Date: Sat, 24 Feb 2024 17:36:13 +0100 Subject: [PATCH] fix: docs --- src/modules/decks/decks.controller.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/modules/decks/decks.controller.ts b/src/modules/decks/decks.controller.ts index 11a00fa..9e00811 100644 --- a/src/modules/decks/decks.controller.ts +++ b/src/modules/decks/decks.controller.ts @@ -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 { + findAllV2(@Query() query: GetAllDecksDto, @Req() req): Promise { const finalQuery = Pagination.getPaginationData(query) return this.commandBus.execute(new GetAllDecksV2Command({ ...finalQuery, userId: req.user.id }))