From 52cbc5ac4e0b2a4f81d70050ba2e83ad8541db0d Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Thu, 7 Mar 2024 22:21:39 +0000 Subject: saves stuff in data.json --- src/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/app.js') diff --git a/src/app.js b/src/app.js index 9b47728..a374995 100644 --- a/src/app.js +++ b/src/app.js @@ -1,9 +1,10 @@ const bodyParser = require('body-parser'); const express = require('express'); -const { isSubscribed, getSubscriptions, getSubscriptionFromNumber, subscribe } = require('./db'); +const { isSubscribed, getSubscriptions, getSubscriptionFromNumber, subscribe, load: loadData } = require('./db'); const { sendTextMessage } = require('./sendTextMessage'); const { MessagingResponse } = require('twilio').twiml; +loadData(); const app = express(); app.use(bodyParser.urlencoded({ extended: false })); -- cgit v1.2.3