mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-26 15:17:44 -06:00
fix error after logout and try to get status or to connect again
This commit is contained in:
@@ -29,9 +29,6 @@ import makeWASocket, {
|
||||
WAMessage,
|
||||
WAMessageUpdate,
|
||||
WASocket,
|
||||
WAReadReceiptsValue,
|
||||
WAPrivacyValue,
|
||||
WAPrivacyOnlineValue,
|
||||
} from '@evolution/base';
|
||||
import {
|
||||
Auth,
|
||||
@@ -1502,6 +1499,9 @@ export class WAStartupService {
|
||||
await this.client.updateOnlinePrivacy(settings.privacySettings.online);
|
||||
await this.client.updateLastSeenPrivacy(settings.privacySettings.last);
|
||||
await this.client.updateGroupsAddPrivacy(settings.privacySettings.groupadd);
|
||||
|
||||
// reinicia a instancia
|
||||
|
||||
return { update: 'success', data: await this.client.fetchPrivacySettings() };
|
||||
} catch (error) {
|
||||
throw new InternalServerErrorException(
|
||||
@@ -1511,7 +1511,7 @@ export class WAStartupService {
|
||||
}
|
||||
}
|
||||
|
||||
public async getBusinessProfile(number: string) {
|
||||
public async fetchBusinessProfile(number: string) {
|
||||
try {
|
||||
let jid;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user