Commit b4fd3cc61b403a3ede44a7cf6c240a1a15171a28

Authored by Adhidarma Hadiwinoto
1 parent a78440b8d2
Exists in master

Perbaikan deteksi ada prefix

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

lib/smstools-config/queues-and-providers.js
... ... @@ -71,7 +71,7 @@ exports.dump = async (mkdirIfQueueDirNotExists) => {
71 71 configLines.push(line);
72 72 hasQueues = true;
73 73  
74   - const hasPrefix = !(queue.prefix && queue.prefix.length);
  74 + const hasPrefix = queue.prefix && queue.prefix.length;
75 75 if (hasPrefix) {
76 76 const providerLine = `${queue.name} = ${queue.prefix.join(', ')}`;
77 77 providerLines.push(providerLine);