diff --git a/packages/@n8n/nodes-langchain/nodes/memory/MemoryPostgresChat/MemoryPostgresChat.node.ts b/packages/@n8n/nodes-langchain/nodes/memory/MemoryPostgresChat/MemoryPostgresChat.node.ts index 18fd76e3c5..ef65b4be1d 100644 --- a/packages/@n8n/nodes-langchain/nodes/memory/MemoryPostgresChat/MemoryPostgresChat.node.ts +++ b/packages/@n8n/nodes-langchain/nodes/memory/MemoryPostgresChat/MemoryPostgresChat.node.ts @@ -115,12 +115,7 @@ export class MemoryPostgresChat implements INodeType { ...kOptions, }); - async function closeFunction() { - void pool.end(); - } - return { - closeFunction, response: logWrapper(memory, this), }; }