We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41bea89 commit 2791f88Copy full SHA for 2791f88
1 file changed
src/whatsapp/services/chatwoot.service.ts
@@ -945,6 +945,9 @@ export class ChatwootService {
945
946
public async receiveWebhook(instance: InstanceDto, body: any) {
947
try {
948
+ // espera 500ms para evitar duplicidade de mensagens
949
+ await new Promise((resolve) => setTimeout(resolve, 500));
950
+
951
this.logger.verbose('receive webhook to chatwoot instance: ' + instance.instanceName);
952
const client = await this.clientCw(instance);
953
0 commit comments