Skip to content

Commit

Permalink
fix: pg pool client missing await when ending connection
Browse files Browse the repository at this point in the history
  • Loading branch information
karenc-bq committed Oct 24, 2024
1 parent 4c663ed commit 8f7f05e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pg/lib/pg_pool_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class AwsPgPoolClient implements AwsPoolClient {
}

async end(poolClient: any) {
if (poolClient == undefined) {
if (!poolClient) {
return;
}
await poolClient.release(true);
Expand Down

0 comments on commit 8f7f05e

Please sign in to comment.