diff --git a/lib/apiserver/routers/smstools.js b/lib/apiserver/routers/smstools.js index fe8a60a..36e3793 100644 --- a/lib/apiserver/routers/smstools.js +++ b/lib/apiserver/routers/smstools.js @@ -45,13 +45,15 @@ function pageLog(req, res) { } async function pageSpoolCount(req, res) { - const outgoingCount = await smstoolsUtil.fileCountOnDir('/var/spool/sms/outgoing'); const checkedCount = await smstoolsUtil.fileCountOnDir('/var/spool/sms/checked'); + const indosatCount = await smstoolsUtil.fileCountOnDir('/var/spool/sms/queue/indosat'); + const otherCount = await smstoolsUtil.fileCountOnDir('/var/spool/sms/queue/other'); res.json({ - outgoingCount, checkedCount, - totalQueueCount: Number(outgoingCount) + Number(checkedCount), + indosatCount, + otherCount, + totalQueueCount: Number(checkedCount) + Number(indosatCount) + Number(otherCount), }); }