Skip to content

Commit 2af7b24

Browse files
fix: Corrige envio da apiKey da instância no payload do Evolution Bot
Corrige o envio da apiKey no payload do Evolution Bot para usar a apiKey específica da instância ao invés da apiKey global do sistema.
1 parent dcb09b8 commit 2af7b24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class EvolutionBotService extends BaseChatbotService<EvolutionBot, Evolut
5252
fromMe: msg?.key?.fromMe,
5353
instanceName: instance.instanceName,
5454
serverUrl: this.configService.get<HttpServer>('SERVER').URL,
55-
apiKey: this.configService.get<Auth>('AUTHENTICATION').API_KEY.KEY,
55+
apiKey: instance.token,
5656
},
5757
query: content,
5858
conversation_id: session.sessionId === remoteJid ? undefined : session.sessionId,

0 commit comments

Comments
 (0)