mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-12 19:39:36 -06:00
refactor: lint fix
This commit is contained in:
parent
10a2c001ab
commit
79438c9445
@ -1,9 +1,9 @@
|
|||||||
import { RouterBroker } from '@api/abstract/abstract.router';
|
import { RouterBroker } from '@api/abstract/abstract.router';
|
||||||
import { NumberDto } from '@api/dto/chat.dto';
|
import { NumberDto } from '@api/dto/chat.dto';
|
||||||
import { businessController } from '@api/server.module';
|
import { businessController } from '@api/server.module';
|
||||||
|
import { createMetaErrorResponse } from '@utils/errorResponse';
|
||||||
import { catalogSchema, collectionsSchema } from '@validate/validate.schema';
|
import { catalogSchema, collectionsSchema } from '@validate/validate.schema';
|
||||||
import { RequestHandler, Router } from 'express';
|
import { RequestHandler, Router } from 'express';
|
||||||
import { createMetaErrorResponse } from '@utils/errorResponse';
|
|
||||||
|
|
||||||
import { HttpStatus } from './index.router';
|
import { HttpStatus } from './index.router';
|
||||||
|
|
||||||
|
|||||||
@ -3,9 +3,9 @@ import { InstanceDto } from '@api/dto/instance.dto';
|
|||||||
import { TemplateDto } from '@api/dto/template.dto';
|
import { TemplateDto } from '@api/dto/template.dto';
|
||||||
import { templateController } from '@api/server.module';
|
import { templateController } from '@api/server.module';
|
||||||
import { ConfigService } from '@config/env.config';
|
import { ConfigService } from '@config/env.config';
|
||||||
|
import { createMetaErrorResponse } from '@utils/errorResponse';
|
||||||
import { instanceSchema, templateSchema } from '@validate/validate.schema';
|
import { instanceSchema, templateSchema } from '@validate/validate.schema';
|
||||||
import { RequestHandler, Router } from 'express';
|
import { RequestHandler, Router } from 'express';
|
||||||
import { createMetaErrorResponse } from '@utils/errorResponse';
|
|
||||||
|
|
||||||
import { HttpStatus } from './index.router';
|
import { HttpStatus } from './index.router';
|
||||||
|
|
||||||
|
|||||||
@ -40,8 +40,8 @@ export function createMetaErrorResponse(error: any, context: string): MetaErrorR
|
|||||||
error_subcode: metaError.error_subcode || null,
|
error_subcode: metaError.error_subcode || null,
|
||||||
fbtrace_id: metaError.fbtrace_id || null,
|
fbtrace_id: metaError.fbtrace_id || null,
|
||||||
context,
|
context,
|
||||||
type: 'whatsapp_api_error'
|
type: 'whatsapp_api_error',
|
||||||
},
|
},
|
||||||
timestamp: new Date().toISOString()
|
timestamp: new Date().toISOString(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user