Skip to content

Commit

Permalink
[PB-1617] bug: add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Edison J Padilla committed Feb 7, 2024
1 parent d910aa0 commit f5b9796
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 f5b9796

Please sign in to comment.