Commit 452ab957965e76610b6257bb2bb96707e51fbe69

Authored by Adhidarma Hadiwinoto
1 parent 1a1c2058c6
Exists in master

penanganan data tidak ditemukan

Showing 1 changed file with 6 additions and 3 deletions Side-by-side Diff

... ... @@ -172,10 +172,13 @@ function topupAdvice(task) {
172 172 }
173 173  
174 174 if (body.trim() == 'invalid specs') {
175   - let rc = '68';
176   -
177 175 logger.warn('Invalid specs', {task: task, responseBody: body});
178   - callbackReport(task.requestId, rc, body);
  176 + callbackReport(task.requestId, '68', body);
  177 + return;
  178 + }
  179 + else if (body.trim() == 'data tidak ditemukan') {
  180 + logger.warn(body, {task: task, responseBody: body});
  181 + callbackReport(task.requestId, '40', body);
179 182 return;
180 183 }
181 184