mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2025-02-21 22:11:54 +01:00
parent
25da5fbc9b
commit
530ca2becb
1 changed files with 5 additions and 3 deletions
|
@ -15,9 +15,11 @@ exports.getPayments = (req, res, next) => {
|
|||
error: (undefined === body || search_idx > -1) ? 'Error From Server!' : body.error
|
||||
});
|
||||
} else {
|
||||
body.payments.forEach(payment => {
|
||||
payment.creation_date_str = (undefined === payment.creation_date) ? '' : common.convertTimestampToDate(payment.creation_date);
|
||||
});
|
||||
if (undefined !== body.payments) {
|
||||
body.payments.forEach(payment => {
|
||||
payment.creation_date_str = (undefined === payment.creation_date) ? '' : common.convertTimestampToDate(payment.creation_date);
|
||||
});
|
||||
}
|
||||
res.status(200).json(body.payments);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue