Commit 5b529cbb014143d3fc2efc4e61bc57b09e207fbf
1 parent
cce03c1feb
Exists in
master
replace by apikey
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
lib/pull.js
... | ... | @@ -19,7 +19,7 @@ function init(options) { |
19 | 19 | |
20 | 20 | function pullTask() { |
21 | 21 | let options = { |
22 | - url: config.pull_url.task, | |
22 | + url: config.pull_url.task.replace('<CORE_APIKEY>', config.core_apikey), | |
23 | 23 | qs: { |
24 | 24 | handler: config.handler_name, |
25 | 25 | products: config.products.join(',') |
... | ... | @@ -73,7 +73,7 @@ function forwardCoreTaskToPartner(coreMessage) { |
73 | 73 | |
74 | 74 | function report(trx_id, rc, message, sn) { |
75 | 75 | let options = { |
76 | - url: config.pull_url.report, | |
76 | + url: config.pull_url.report.replace('<CORE_APIKEY>', config.core_apikey), | |
77 | 77 | qs: { |
78 | 78 | trx_id: trx_id, |
79 | 79 | rc: rc, |