mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
refactor(nestjs): replace the reports endpoints
This commit is contained in:
@@ -15,10 +15,14 @@ export class ServiceErrorFilter implements ExceptionFilter {
|
||||
const status = exception.getStatus();
|
||||
|
||||
response.status(status).json({
|
||||
statusCode: status,
|
||||
errorType: exception.errorType,
|
||||
message: exception.message,
|
||||
payload: exception.payload,
|
||||
errors: [
|
||||
{
|
||||
statusCode: status,
|
||||
type: exception.errorType,
|
||||
message: exception.message,
|
||||
payload: exception.payload,
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user