Skip to content

Commit

Permalink
Merge pull request #4 from NivSv/development
Browse files Browse the repository at this point in the history
fix postgres service
  • Loading branch information
NivSv authored Mar 27, 2023
2 parents 44a69ca + ea9c943 commit 0f20bc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/postgres/lib/postgres.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class PostgresService implements OnModuleInit, OnModuleDestroy {
try {
const client = await this.pool.connect()
const result = await client.query<QueryResponse>(query, params)
this.pool.end()
client.release()
return result.rows
} catch (error) {
console.error(error)
Expand Down

0 comments on commit 0f20bc1

Please sign in to comment.