Skip to content

Commit

Permalink
Correção da atualização de Webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
vilsonei committed Jul 6, 2024
1 parent 180a281 commit 29b976c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/whatsapp/services/whatsapp.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export class WAStartupService {
let update: typeof this.webhook;

if (find) {
update = await this.repository.updateWebhook(this.instance.id, data);
update = await this.repository.updateWebhook(find.id, data);
} else {
update = await this.repository.webhook.create({
data: {
Expand Down

0 comments on commit 29b976c

Please sign in to comment.