Skip to content

Commit

Permalink
Merge pull request #267 from internxt/bug/PB-1617
Browse files Browse the repository at this point in the history
[PB-1617] chore: add logs in empty trash endpoints
  • Loading branch information
sg-gs authored Feb 8, 2024
2 parents d910aa0 + f5b9796 commit f1ae0c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/trash/trash.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
Res,
Logger,
HttpStatus,
UseFilters,
} from '@nestjs/common';
import {
ApiBadRequestResponse,
Expand All @@ -38,6 +39,7 @@ import { File, FileStatus } from '../file/file.domain';
import logger from '../../externals/logger';
import { v4 } from 'uuid';
import { Response } from 'express';
import { HttpExceptionFilter } from '../../lib/http/http-exception.filter';

@ApiTags('Trash')
@Controller('storage/trash')
Expand Down Expand Up @@ -182,6 +184,7 @@ export class TrashController {
}
}

@UseFilters(new HttpExceptionFilter())
@Delete('/all')
@HttpCode(200)
@ApiOperation({
Expand All @@ -191,6 +194,7 @@ export class TrashController {
await this.trashUseCases.emptyTrash(user);
}

@UseFilters(new HttpExceptionFilter())
@Delete('/all/request')
requestEmptyTrash(user: User) {
this.trashUseCases.emptyTrash(user);
Expand Down

0 comments on commit f1ae0c2

Please sign in to comment.