fix(postgresql): close connections when done

This commit is contained in:
AnimatedSwine37
2023-06-27 18:57:18 +02:00
committed by Ali BARIN
parent 110c2dbac8
commit 8e9896ec2e
5 changed files with 8 additions and 0 deletions
@@ -5,6 +5,7 @@ import getClient from '../common/postgres-client';
const verifyCredentials = async ($: IGlobalVariable) => {
const client = getClient($);
const checkConnection = await client.raw('SELECT 1');
client.destroy();
logger.debug(checkConnection);