summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2024-03-07 22:39:11 +0000
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2024-03-07 22:39:11 +0000
commit296cb7cc2b1c06282e5c03a92ec7ba46b25cb288 (patch)
treef87f44e5797b508280208ccb2274bf1a0aed1dc6 /src
parentdc965e47ad8c256bed3776ea0ab4e3c6ec7ad263 (diff)
Loads .env
Diffstat (limited to 'src')
-rw-r--r--src/app.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app.js b/src/app.js
index c169c17..7020fbe 100644
--- a/src/app.js
+++ b/src/app.js
@@ -1,9 +1,11 @@
const bodyParser = require('body-parser');
+const dotenv = require('dotenv');
const express = require('express');
const { isSubscribed, getSubscriptions, getSubscriptionFromNumber, subscribe, load: loadData } = require('./db');
const { sendTextMessage } = require('./sendTextMessage');
const { MessagingResponse } = require('twilio').twiml;
+dotenv.config();
loadData();
const app = express();