mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-24 06:07:45 -06:00
refactor: lint fix
This commit is contained in:
@@ -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(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user