diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-03-07 22:21:39 +0000 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-03-07 22:22:21 +0000 |
| commit | 52cbc5ac4e0b2a4f81d70050ba2e83ad8541db0d (patch) | |
| tree | 87d5e31f42bd2172f4cff5f4c9d7fd167c543212 /src/app.js | |
| parent | 88baf168df46d1f03244f5669bb672a712416759 (diff) | |
saves stuff in data.json
Diffstat (limited to 'src/app.js')
| -rw-r--r-- | src/app.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 })); |
