mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-23 17:08:44 -06:00
fix: Fix the problem when disconnecting the instance and connecting again using mongodb
This commit is contained in:
parent
e8764dd1c6
commit
97b3f9b3c7
@ -1234,15 +1234,17 @@ export class WAStartupService {
|
|||||||
this.instance.wuid = this.client.user.id.replace(/:\d+/, '');
|
this.instance.wuid = this.client.user.id.replace(/:\d+/, '');
|
||||||
this.instance.profilePictureUrl = (await this.profilePicture(this.instance.wuid)).profilePictureUrl;
|
this.instance.profilePictureUrl = (await this.profilePicture(this.instance.wuid)).profilePictureUrl;
|
||||||
const formattedWuid = this.instance.wuid.split('@')[0].padEnd(30, ' ');
|
const formattedWuid = this.instance.wuid.split('@')[0].padEnd(30, ' ');
|
||||||
const formattedName = this.instance.name.split('@')[0].padEnd(30, ' ');
|
const formattedName = this.instance.name;
|
||||||
this.logger.info(
|
this.logger.info(
|
||||||
`
|
`
|
||||||
┌──────────────────────────────┐
|
┌──────────────────────────────┐
|
||||||
│ CONNECTED TO WHATSAPP │
|
│ CONNECTED TO WHATSAPP │
|
||||||
│${formattedWuid}│
|
|
||||||
│${formattedName}│
|
|
||||||
└──────────────────────────────┘`.replace(/^ +/gm, ' '),
|
└──────────────────────────────┘`.replace(/^ +/gm, ' '),
|
||||||
);
|
);
|
||||||
|
this.logger.info(`
|
||||||
|
wuid: ${formattedWuid}
|
||||||
|
name: ${formattedName}
|
||||||
|
`);
|
||||||
|
|
||||||
if (this.localChatwoot.enabled) {
|
if (this.localChatwoot.enabled) {
|
||||||
this.chatwootService.eventWhatsapp(
|
this.chatwootService.eventWhatsapp(
|
||||||
|
Loading…
Reference in New Issue
Block a user