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