refactor: lint fix

This commit is contained in:
ricael
2025-09-08 09:11:45 -03:00
parent 10a2c001ab
commit 79438c9445
4 changed files with 16 additions and 16 deletions

View File

@@ -26,7 +26,7 @@ export function createMetaErrorResponse(error: any, context: string): MetaErrorR
const metaError = error.template || error;
const errorUserTitle = metaError.error_user_title || metaError.message || 'Unknown error';
const errorUserMsg = metaError.error_user_msg || metaError.message || 'Unknown error';
return {
status: HttpStatus.BAD_REQUEST,
error: 'Bad Request',
@@ -40,8 +40,8 @@ export function createMetaErrorResponse(error: any, context: string): MetaErrorR
error_subcode: metaError.error_subcode || null,
fbtrace_id: metaError.fbtrace_id || null,
context,
type: 'whatsapp_api_error'
type: 'whatsapp_api_error',
},
timestamp: new Date().toISOString()
timestamp: new Date().toISOString(),
};
}
}