Browse Source

fix: drop test connection after getting result

pull/6743/head
mertmit 1 year ago
parent
commit
85326f8d50
  1. 7
      packages/nocodb/src/db/sql-mgr/v2/SqlMgrv2.ts

7
packages/nocodb/src/db/sql-mgr/v2/SqlMgrv2.ts

@ -36,7 +36,12 @@ export default class SqlMgrv2 {
public static async testConnection(args = {}) {
const client = await SqlClientFactory.create(args);
return client.testConnection();
const result = await client.testConnection();
// close connection
await client.knex.destroy();
return result;
}
/**

Loading…
Cancel
Save