Skip to content

Commit 7ee5bce

Browse files
committed
fix: added restart instance when update profile pricture
1 parent 48f6ee8 commit 7ee5bce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/whatsapp/services/whatsapp.service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3427,6 +3427,8 @@ export class WAStartupService {
34273427
await this.client.updateProfilePicture(this.instance.wuid, pic);
34283428
this.logger.verbose('Profile picture updated');
34293429

3430+
this.reloadConnection();
3431+
34303432
return { update: 'success' };
34313433
} catch (error) {
34323434
throw new InternalServerErrorException('Error updating profile picture', error.toString());
@@ -3438,6 +3440,8 @@ export class WAStartupService {
34383440
try {
34393441
await this.client.removeProfilePicture(this.instance.wuid);
34403442

3443+
this.reloadConnection();
3444+
34413445
return { update: 'success' };
34423446
} catch (error) {
34433447
throw new InternalServerErrorException('Error removing profile picture', error.toString());

0 commit comments

Comments
 (0)