mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 21:08:12 +00:00
Update seatmap and add cron job for payment status
This commit is contained in:
@@ -47,6 +47,11 @@ export class HttpExceptionFilter implements ExceptionFilter {
|
||||
this.logger.warn(`${request.method} ${request.url} -> ${status} ${message}`);
|
||||
}
|
||||
|
||||
// When the thrown body is already a structured object (e.g. { status, message, code }),
|
||||
// merge it into the envelope so callers receive all custom fields.
|
||||
const customFields =
|
||||
typeof messageRaw === 'object' && messageRaw !== null ? messageRaw : {};
|
||||
|
||||
response.status(status).json({
|
||||
success: false,
|
||||
statusCode: status,
|
||||
@@ -54,6 +59,7 @@ export class HttpExceptionFilter implements ExceptionFilter {
|
||||
error: exception instanceof Error ? exception.name : 'Error',
|
||||
timestamp: new Date().toISOString(),
|
||||
path: request.url,
|
||||
...customFields,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user