Skip to content

Commit 0cdfdf8

Browse files
committed
Restrict to one connection to avoid error
1 parent 9e87fcc commit 0cdfdf8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

get-data/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const postgres = require("postgres");
55

66
const sql = postgres(process.env.DB_URL, {
77
ssl: { rejectUnauthorized: false },
8+
max: 1,
89
});
910

1011
// Helper for running queries from `.sql` files

0 commit comments

Comments
 (0)