summaryrefslogtreecommitdiff
path: root/src/app.js
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2024-03-07 22:49:47 +0000
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2024-03-07 22:49:47 +0000
commit21e9f285f1aeccb684e555b47c88c285c6468d86 (patch)
tree719e62b2a925a9522d5304ff8d6b42d86e8cb0e6 /src/app.js
parent944f47c317c133fdbec9b8b1097357db93b060cd (diff)
fixes dotenv loading
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/app.js b/src/app.js
index 25a941d..1e2ae98 100644
--- a/src/app.js
+++ b/src/app.js
@@ -1,11 +1,13 @@
const bodyParser = require('body-parser');
const dotenv = require('dotenv');
const express = require('express');
+const { MessagingResponse } = require('twilio').twiml;
+
+dotenv.config();
+
const { isSubscribed, getSubscriptions, getSubscriptionFromNumber, subscribe, load: loadData } = require('./db');
const { sendTextMessage } = require('./sendTextMessage');
-const { MessagingResponse } = require('twilio').twiml;
-dotenv.config({ path: '..' });
loadData();
const app = express();