Commit 0bb40e36ebcc85967430603406aa36774b7cd23c
1 parent
f24458bdb8
Exists in
master
await missed
Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff
lib/apiserver/routers/smstools-config.js
... | ... | @@ -16,8 +16,8 @@ const queuesAndProviders = require('../../smstools-config/queues-and-providers') |
16 | 16 | const router = express.Router(); |
17 | 17 | module.exports = router; |
18 | 18 | |
19 | -function pageIndex(req, res) { | |
20 | - const configString = smstoolsConfigCreator(); | |
19 | +async function pageIndex(req, res) { | |
20 | + const configString = await smstoolsConfigCreator(); | |
21 | 21 | res.json({ |
22 | 22 | dirty: smstoolsConfig.config.dirty, |
23 | 23 | config: smstoolsConfig.config, |
... | ... | @@ -28,7 +28,7 @@ function pageIndex(req, res) { |
28 | 28 | } |
29 | 29 | |
30 | 30 | function pageGenerate(req, res) { |
31 | - res.end(smstoolsConfigCreator()); | |
31 | + res.end(await smstoolsConfigCreator()); | |
32 | 32 | } |
33 | 33 | |
34 | 34 | async function pageModemList(req, res) { |