Skip to content

Commit d24540d

Browse files
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.
1 parent 2af7b24 commit d24540d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/integrations/chatbot/n8n/services/n8n.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export class N8nService extends BaseChatbotService<N8n, N8nSetting> {
135135
fromMe: msg?.key?.fromMe,
136136
instanceName: instance.instanceName,
137137
serverUrl: this.configService.get<HttpServer>('SERVER').URL,
138-
apiKey: this.configService.get<Auth>('AUTHENTICATION').API_KEY.KEY,
138+
apiKey: instance.token,
139139
};
140140

141141
// Handle audio messages

0 commit comments

Comments
 (0)