Fix /api/getRequests endpoint #1

Closed
Ghost wants to merge 3 commits from temp-jenn into temp
3 changed files with 10 additions and 2 deletions
Showing only changes of commit 3015eeb262 - Show all commits

5
package-lock.json generated
View file

@ -491,6 +491,11 @@
"is-obj": "^2.0.0"
}
},
"dotenv": {
"version": "8.2.0",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz",
"integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw=="
},
"duplexer3": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz",

View file

@ -4,6 +4,7 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
"dotenv": "^8.2.0",
"express": "^4.17.1",
"pg": "^8.2.1"
},

View file

@ -1,3 +1,5 @@
require('dotenv').config()
if (!process.env.PORT) {
console.log("Missing environment variable PORT");
process.exit(1);