Compare View

switch
from
...
to
 
Commits (2)

Changes

Showing 3 changed files Side-by-side Diff

... ... @@ -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();
1 1 {
2 2 "name": "komodo-sdk",
3   - "version": "1.37.16",
  3 + "version": "1.37.17",
4 4 "lockfileVersion": 1,
5 5 "requires": true,
6 6 "dependencies": {
1 1 {
2 2 "name": "komodo-sdk",
3   - "version": "1.37.16",
  3 + "version": "1.37.17",
4 4 "description": "SDK for Komodo",
5 5 "main": "index.js",
6 6 "scripts": {