Skip to content

Commit 3c1573c

Browse files
Merge pull request #2238 from jamesjhonatan123/feature/quote-message-n8n
Feature/quote message n8n
2 parents cea1fa0 + 1783865 commit 3c1573c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export class N8nService extends BaseChatbotService<N8n, N8nSetting> {
5151
pushName: pushName,
5252
keyId: msg?.key?.id,
5353
fromMe: msg?.key?.fromMe,
54+
quotedMessage: msg?.contextInfo?.quotedMessage,
5455
instanceName: instance.instanceName,
5556
serverUrl: this.configService.get<HttpServer>('SERVER').URL,
5657
apiKey: instance.token,

src/utils/makeProxyAgent.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function makeProxyAgent(proxy: Proxy | string): HttpsProxyAgent<string> |
5656
return selectProxyAgent(proxyUrl);
5757
}
5858

59-
export function makeProxyAgentUndici(proxy: Proxy | string) {
59+
export function makeProxyAgentUndici(proxy: Proxy | string): ProxyAgent {
6060
let proxyUrl: string;
6161
let protocol: string;
6262

@@ -67,7 +67,10 @@ export function makeProxyAgentUndici(proxy: Proxy | string) {
6767
} else {
6868
const { host, password, port, protocol: proto, username } = proxy;
6969
protocol = (proto || 'http').replace(':', '');
70-
if (protocol === 'socks') protocol = 'socks5';
70+
71+
if (protocol === 'socks') {
72+
protocol = 'socks5';
73+
}
7174

7275
const auth = username && password ? `${username}:${password}@` : '';
7376
proxyUrl = `${protocol}://${auth}${host}:${port}`;

0 commit comments

Comments
 (0)