mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-01-09 05:12:28 -06:00
fix: logout wa business instance
This commit is contained in:
@@ -147,6 +147,14 @@ export class BaileysStartupService extends WAStartupService {
|
||||
return this.stateConnection;
|
||||
}
|
||||
|
||||
public async logoutInstance() {
|
||||
this.logger.verbose('logging out instance: ' + this.instanceName);
|
||||
await this.client?.logout('Log out instance: ' + this.instanceName);
|
||||
|
||||
this.logger.verbose('close connection instance: ' + this.instanceName);
|
||||
this.client?.ws?.close();
|
||||
}
|
||||
|
||||
public async getProfileName() {
|
||||
this.logger.verbose('Getting profile name');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user