From 69850c91423f4014a6c7e43f1f6187cb9745602b Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Thu, 5 Dec 2019 12:41:01 +0700 Subject: [PATCH] /smstools-config/queues-and-providers return json --- lib/apiserver/routers/smstools-config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/apiserver/routers/smstools-config.js b/lib/apiserver/routers/smstools-config.js index 7451056..210a969 100644 --- a/lib/apiserver/routers/smstools-config.js +++ b/lib/apiserver/routers/smstools-config.js @@ -154,7 +154,7 @@ async function pageInstallConfig(req, res) { } async function pageQueuesAndProviders(req, res) { - res.end(await queuesAndProviders.dump()); + res.json(smstoolsConfigData.queues); } function pageModemQueueName(req, res) { -- 1.9.0