mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-16 04:02:54 -06:00
feat: Added verbose logs and format chatwoot service
This commit is contained in:
parent
78bd4fd7de
commit
d680900f07
@ -404,7 +404,9 @@ export class InstanceController {
|
|||||||
const stateConn = await this.connectionState({ instanceName });
|
const stateConn = await this.connectionState({ instanceName });
|
||||||
|
|
||||||
if (stateConn.state === 'close') {
|
if (stateConn.state === 'close') {
|
||||||
throw new BadRequestException('Instance already logged out');
|
throw new BadRequestException(
|
||||||
|
'The "' + instanceName + '" instance is not connected',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -427,10 +429,9 @@ export class InstanceController {
|
|||||||
const stateConn = await this.connectionState({ instanceName });
|
const stateConn = await this.connectionState({ instanceName });
|
||||||
|
|
||||||
if (stateConn.state === 'open') {
|
if (stateConn.state === 'open') {
|
||||||
throw new BadRequestException([
|
throw new BadRequestException(
|
||||||
'Deletion failed',
|
'The "' + instanceName + '" instance needs to be disconnected',
|
||||||
'The instance needs to be disconnected',
|
);
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if (stateConn.state === 'connecting') {
|
if (stateConn.state === 'connecting') {
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user