Skip to content

Commit 1d9becf

Browse files
committed
fix: correct db SSL flag
1 parent 1581be3 commit 1d9becf

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

people.csv

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
id,name,postcode,latitude,longitude
2+
"5","Rey Mcsriff","KY2 5LH","56.116729","-3.163521"
3+
"6","Glenallen Mixons","PA24 8AH","56.161051","-4.896576"
4+
"7","Mario Mcrlwains","B63 3EU","52.445655","-2.042455"
5+
"8","Raul Chamgerlain","YO7 3JW","52.445655","-2.042455"

src/server/services/db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Pool } from "pg";
22

33
const pool = new Pool({
44
connectionString: process.env.POSTGRES_URL,
5-
ssl: true
5+
ssl: process.env.POSTGRES_URL?.includes(".")
66
});
77

88
export default pool;

0 commit comments

Comments
 (0)