fix error after logout and try to get status or to connect again

This commit is contained in:
Davidson Gomes
2023-06-12 10:32:47 -03:00
parent 573e56cd8c
commit 75b48aa8ac
6 changed files with 39 additions and 10 deletions

View File

@@ -75,11 +75,13 @@ export class ChatController {
return await this.waMonitor.waInstances[instanceName].updatePrivacySettings(data);
}
public async getBusinessProfile(
public async fetchBusinessProfile(
{ instanceName }: InstanceDto,
data: ProfilePictureDto,
) {
return await this.waMonitor.waInstances[instanceName].getBusinessProfile(data.number);
return await this.waMonitor.waInstances[instanceName].fetchBusinessProfile(
data.number,
);
}
public async updateProfileName({ instanceName }: InstanceDto, data: ProfileNameDto) {