From b4fd3cc61b403a3ede44a7cf6c240a1a15171a28 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Wed, 4 Dec 2019 13:50:23 +0700 Subject: [PATCH] Perbaikan deteksi ada prefix --- lib/smstools-config/queues-and-providers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/smstools-config/queues-and-providers.js b/lib/smstools-config/queues-and-providers.js index d1847bf..3ef30f9 100644 --- a/lib/smstools-config/queues-and-providers.js +++ b/lib/smstools-config/queues-and-providers.js @@ -71,7 +71,7 @@ exports.dump = async (mkdirIfQueueDirNotExists) => { configLines.push(line); hasQueues = true; - const hasPrefix = !(queue.prefix && queue.prefix.length); + const hasPrefix = queue.prefix && queue.prefix.length; if (hasPrefix) { const providerLine = `${queue.name} = ${queue.prefix.join(', ')}`; providerLines.push(providerLine); -- 1.9.0