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.sdk_pull_only_postpaid ? '' : config.products.join(','), | |
| 107 | + products: 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, |
| ... | ... | @@ -240,6 +240,12 @@ function forwardCoreTaskToPartner(coreMessage, start_time) { |
| 240 | 240 | return; |
| 241 | 241 | } |
| 242 | 242 | |
| 243 | + if (config.sdk_pull_only_postpaid) { | |
| 244 | + logger.warn('Got task on sdk_pull_only_postpaid. It should not be happens', { task }); | |
| 245 | + return; | |
| 246 | + } | |
| 247 | + | |
| 248 | + | |
| 243 | 249 | const core_pull_request_time = start_time ? (new Date() - start_time) / 1000 : null; |
| 244 | 250 | |
| 245 | 251 | incrementCounterTrx(); |
package-lock.json