fix: Remove rabbitmq queues when delete instances

This commit is contained in:
Davidson Gomes
2023-09-30 07:20:57 -03:00
parent ba584974cb
commit 3fdb3fa673
7 changed files with 49 additions and 95 deletions

View File

@@ -534,6 +534,8 @@ export class InstanceController {
throw new BadRequestException('The "' + instanceName + '" instance needs to be disconnected');
}
try {
this.waMonitor.waInstances[instanceName]?.removeRabbitmqQueues();
if (instance.state === 'connecting') {
this.logger.verbose('logging out instance: ' + instanceName);