Skip to content

Commit e868748

Browse files
committed
fix: revert pg to ^7.0.0
1 parent 01e09c4 commit e868748

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"cors": "^2.8.5",
2525
"crypto-js": "^4.0.0",
2626
"express": "^4.17.1",
27-
"pg": "^8.0.0",
27+
"pg": "^7.0.0",
2828
"pg-format": "^1.0.4",
2929
"sql-template-strings": "^2.2.2"
3030
},

src/lib/connectionPool.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@ pg.types.setTypeParser(20, 'text', parseInt)
77
const { Pool } = pg
88

99
export const RunQuery = async (connectionString: any, sql: string | SQLStatement) => {
10-
const pool = new Pool({
11-
connectionString,
12-
ssl: {
13-
rejectUnauthorized: false,
14-
},
15-
})
10+
const pool = new Pool({ connectionString })
1611
try {
1712
const results = await pool.query(sql)
1813
return { data: results.rows, error: null }

0 commit comments

Comments
 (0)