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 }))