Commit 509960b6bd3c00b47a2ad1a36e37e931a2bb6615
1 parent
e54de6da03
Exists in
master
perbaikan resend delay
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
lib/partner.js
... | ... | @@ -185,11 +185,11 @@ function report(data) { |
185 | 185 | matrix.last_report_to_core = data; |
186 | 186 | pull.report(data); |
187 | 187 | |
188 | - if (!data.task) { | |
188 | + if (!data.misc && !data.misc.task) { | |
189 | 189 | return; |
190 | 190 | } |
191 | 191 | |
192 | - const task = data.task; | |
192 | + const task = data.misc.task; | |
193 | 193 | |
194 | 194 | if (!resendDelay.isEnabled()) { |
195 | 195 | logger.verbose('Skipping resend delay because resend delay has not configured yet', {trx_id: task.trx_id, destination: task.destination, product: task.product}); |