Commit d055b3ececcfdf85ca1c1b2e783235e814c1d7ef

Authored by Adhidarma Hadiwinoto
1 parent 0f68673d63
Exists in master

ts_date

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

... ... @@ -255,8 +255,12 @@ function topupRequestRetry(task) {
255 255 function topupRequest(task, retry) {
256 256  
257 257 if (retry === undefined) {
  258 +
258 259 task.ts = moment(task.timestamp, 'YYYYMMDDHHmmss').format('YYYY-MM-DD HH:mm:ss');
  260 + task.ts_date = moment(task.timestamp, 'YYYYMMDDHHmmss').format('YYYY-MM-DD');
  261 +
259 262 insertTaskToMongoDb(task);
  263 +
260 264 retry = maxRetry;
261 265 }
262 266