mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-23 17:08:44 -06:00
fix: added restart instance when update profile pricture
This commit is contained in:
parent
48f6ee8846
commit
7ee5bcecff
@ -3427,6 +3427,8 @@ export class WAStartupService {
|
|||||||
await this.client.updateProfilePicture(this.instance.wuid, pic);
|
await this.client.updateProfilePicture(this.instance.wuid, pic);
|
||||||
this.logger.verbose('Profile picture updated');
|
this.logger.verbose('Profile picture updated');
|
||||||
|
|
||||||
|
this.reloadConnection();
|
||||||
|
|
||||||
return { update: 'success' };
|
return { update: 'success' };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new InternalServerErrorException('Error updating profile picture', error.toString());
|
throw new InternalServerErrorException('Error updating profile picture', error.toString());
|
||||||
@ -3438,6 +3440,8 @@ export class WAStartupService {
|
|||||||
try {
|
try {
|
||||||
await this.client.removeProfilePicture(this.instance.wuid);
|
await this.client.removeProfilePicture(this.instance.wuid);
|
||||||
|
|
||||||
|
this.reloadConnection();
|
||||||
|
|
||||||
return { update: 'success' };
|
return { update: 'success' };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new InternalServerErrorException('Error removing profile picture', error.toString());
|
throw new InternalServerErrorException('Error removing profile picture', error.toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user