fix: Corrige envio da apiKey da instância no payload do N8N

Corrige o envio da apiKey no payload do N8N para usar a apiKey específica da instância ao invés da apiKey global do sistema.
This commit is contained in:
OrionDesign 2025-05-22 10:57:41 -03:00
parent 2af7b24013
commit d24540d6dd

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