Merge pull request #1485 from oriondesign2015/develop

fix: Corrige envio da apiKey da instância nos payloads do Evolution Bot e N8N
This commit is contained in:
Davidson Gomes 2025-05-22 11:02:21 -03:00 committed by GitHub
commit 6a83e89394
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ export class EvolutionBotService extends BaseChatbotService<EvolutionBot, Evolut
fromMe: msg?.key?.fromMe,
instanceName: instance.instanceName,
serverUrl: this.configService.get<HttpServer>('SERVER').URL,
apiKey: this.configService.get<Auth>('AUTHENTICATION').API_KEY.KEY,
apiKey: instance.token,
},
query: content,
conversation_id: session.sessionId === remoteJid ? undefined : session.sessionId,

View File

@ -135,7 +135,7 @@ export class N8nService extends BaseChatbotService<N8n, N8nSetting> {
fromMe: msg?.key?.fromMe,
instanceName: instance.instanceName,
serverUrl: this.configService.get<HttpServer>('SERVER').URL,
apiKey: this.configService.get<Auth>('AUTHENTICATION').API_KEY.KEY,
apiKey: instance.token,
};
// Handle audio messages