From 84591b1db548ed15b455683d38dbb78547708a40 Mon Sep 17 00:00:00 2001 From: andres Date: Fri, 15 Mar 2024 15:47:28 +0100 Subject: [PATCH] update env example remove test endpoint --- .env.example | 11 +++++------ src/modules/decks/decks.controller.ts | 19 ------------------- 2 files changed, 5 insertions(+), 25 deletions(-) diff --git a/.env.example b/.env.example index 9957eff..64ac8c9 100644 --- a/.env.example +++ b/.env.example @@ -1,15 +1,14 @@ -DATABASE_URL='mysql://root@127.0.0.1:3306/flashcards' +DATABASE_URL=123 +DATABASE_URL_UNPOOLED=123 ACCESS_JWT_SECRET_KEY=123 REFRESH_JWT_SECRET_KEY=123 -AWS_ACCESS_KEY=123 -AWS_SECRET_ACCESS_KEY=123 -AWS_REGION=123 AWS_SES_SMTP_HOST=123 AWS_SES_SMTP_PORT=123 AWS_SES_SMTP_USER=123 AWS_SES_SMTP_PASS=123 -AWS_BUCKET_NAME=123 AWS_S3_ACCESS_KEY=123 AWS_S3_SECRET_ACCESS_KEY=123 ADMIN_LOGIN=123 -ADMIN_PASSWORD=123 \ No newline at end of file +ADMIN_PASSWORD=123 +STORAGE_SERVICE_URL=123 +STORAGE_SERVICE_TOKEN=123 \ No newline at end of file diff --git a/src/modules/decks/decks.controller.ts b/src/modules/decks/decks.controller.ts index dda6440..4d430f6 100644 --- a/src/modules/decks/decks.controller.ts +++ b/src/modules/decks/decks.controller.ts @@ -93,25 +93,6 @@ export class DecksController { return this.commandBus.execute(new GetAllDecksV2Command({ ...finalQuery, userId: req.user.id })) } - @HttpCode(HttpStatus.PARTIAL_CONTENT) - @ApiOperation({ description: 'Retrieve paginated decks list.', summary: 'Paginated decks list' }) - @ApiUnauthorizedResponse({ description: 'Unauthorized' }) - @UseGuards(JwtAuthGuard) - @Version('2') - @Get('empty') - async findAllEmpty(@Query() query: GetAllDecksDto, @Req() req) { - const result: PaginatedDecks = await this.commandBus.execute( - new GetAllDecksV2Command({ - itemsPerPage: 5000, - minCardsCount: 0, - maxCardsCount: 0, - userId: req.user.id, - }) - ) - - return this.decksRepository.deleteManyById(result.items.map(({ id }) => id)) - } - @HttpCode(HttpStatus.OK) @ApiOperation({ description: 'Retrieve the minimum and maximum amount of cards in a deck.',