From 29c51a13ed425c6400834e5db6c5ab3bae8f77b0 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Sat, 12 Feb 2022 16:09:26 -0500 Subject: [PATCH] fix: change cookie to env variable --- src/database/pg-wrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/pg-wrapper.js b/src/database/pg-wrapper.js index 3519108..eed98ed 100644 --- a/src/database/pg-wrapper.js +++ b/src/database/pg-wrapper.js @@ -12,7 +12,7 @@ const tableWhiteList = [...createFullName("latest", tableNamesWhitelist), ...cre /* Postgres database connection code */ -const databaseURL = getSecret("digitalocean-postgres") +const databaseURL = process.env.DIGITALOCEAN_POSTGRES || getSecret("digitalocean-postgres") // process.env.DATABASE_URL || getSecret("heroku-postgres") const readWritePool = new Pool({ connectionString: databaseURL,