Compare View
Commits (2)
Changes
Showing 3 changed files Side-by-side Diff
gateway/pull.js
... | ... | @@ -104,7 +104,7 @@ function pullTask() { |
104 | 104 | |
105 | 105 | const body_or_qs = { |
106 | 106 | handler: config.handler_name, |
107 | - products: config.products.join(','), | |
107 | + products: config.sdk_pull_only_postpaid ? '' : config.products.join(','), | |
108 | 108 | locations: config.locations && config.locations.length ? config.locations.join(',') : 'ALL', |
109 | 109 | advice_url: (config && config.push_server && config.push_server.apikey && config.push_server.advice && config.push_server.advice.url && config.push_server.advice.port) ? config.push_server.advice.url : null, |
110 | 110 | api_url: (config && config.apiserver && config.apiserver.apikey && config.apiserver.url) ? config.apiserver.url : null, |
... | ... | @@ -385,10 +385,8 @@ function getRemoteProduct(product) { |
385 | 385 | |
386 | 386 | initMatrix(); |
387 | 387 | |
388 | -if (!config.sdk_pull_only_postpaid) { | |
389 | - setInterval(pullTask, config.pull_interval_ms || 1000); | |
390 | - logger.verbose('Pull task every ' + (config.pull_interval_ms || 1000) + ' ms') | |
391 | -} | |
388 | +setInterval(pullTask, config.pull_interval_ms || 1000); | |
389 | +logger.verbose('Pull task every ' + (config.pull_interval_ms || 1000) + ' ms'); | |
392 | 390 | |
393 | 391 | exports.setPartner = setPartner; |
394 | 392 | exports.isPaused = isPaused; |
package-lock.json