Skip to content

Commit f101a52

Browse files
author
Misha Savelyev
committed
Set postgres query timeout to 10 seconds in services
1 parent 954a893 commit f101a52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/libs/database/src/connection.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export const getDbConnection = (config: IDatabaseConfig, maxPoolSize?: number):
5959
dbConnection = dbInstance({
6060
...config,
6161
max: maxPoolSize || 5,
62+
query_timeout: 10000,
6263
})
6364

6465
return dbConnection

0 commit comments

Comments
 (0)