mirror of
https://github.com/twentyhq/twenty
synced 2026-04-21 13:37:22 +00:00
API rest exception filter (#10548)
While troubleshooting with a person self-hosting Twenty (v0.42.2), we figured out that logs were missing on REST findMany, findOne and duplicate endpoints This PR fixes it
This commit is contained in:
parent
890b5c42d1
commit
6be66f27d3
1 changed files with 2 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ export class RestApiCoreController {
|
|||
) {}
|
||||
|
||||
@Post('/duplicates')
|
||||
@UseFilters(RestApiExceptionFilter)
|
||||
async handleApiFindDuplicates(@Req() request: Request, @Res() res: Response) {
|
||||
const result = await this.restApiCoreService.findDuplicates(request);
|
||||
|
||||
|
|
@ -36,6 +37,7 @@ export class RestApiCoreController {
|
|||
}
|
||||
|
||||
@Get()
|
||||
@UseFilters(RestApiExceptionFilter)
|
||||
async handleApiGet(@Req() request: Request, @Res() res: Response) {
|
||||
const result = await this.restApiCoreService.get(request);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue