mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
fix(Postgres Node): Close connection pool only if it's not already closed or closing (#8690)
This commit is contained in:
committed by
GitHub
parent
890c2bd52b
commit
457cac4cf9
@@ -58,7 +58,7 @@ export async function router(this: IExecuteFunctions): Promise<INodeExecutionDat
|
||||
sshClient.end();
|
||||
}
|
||||
|
||||
await db.$pool.end();
|
||||
if (!db.$pool.ending) await db.$pool.end();
|
||||
}
|
||||
|
||||
return [returnData];
|
||||
|
||||
Reference in New Issue
Block a user