We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2b6884 commit 5ef5f3bCopy full SHA for 5ef5f3b
1 file changed
db.js
@@ -13,7 +13,7 @@ CREATE TABLE IF NOT EXISTS values (
13
module.exports = {
14
connectDB : function() {
15
pool = new pg.Pool({
16
- connectionString: process.env.POSTGRESQL_ADDON_DIRECT_URI,
+ connectionString: process.env.POSTGRESQL_ADDON_DIRECT_URI || process.env.POSTGRESQL_ADDON_URI,
17
})
18
pool.query(createTableText, [], (err, res) => {
19
if (err) {
0 commit comments