mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2025-02-21 22:11:54 +01:00
Invoices crash fix 2
This commit is contained in:
parent
3e2056fd95
commit
8ca7360dfd
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ exports.listInvoices = (req, res, next) => {
|
|||
error: (undefined === body || search_idx > -1) ? 'Error From Server!' : body.error
|
||||
});
|
||||
} else {
|
||||
if (undefine !== body.invoices) {
|
||||
if (undefined !== body.invoices) {
|
||||
body.invoices.forEach(invoice => {
|
||||
invoice.creation_date_str = (undefined === invoice.creation_date) ? '' : common.convertTimestampToDate(invoice.creation_date);
|
||||
invoice.settle_date_str = (undefined === invoice.settle_date) ? '' : common.convertTimestampToDate(invoice.settle_date);
|
||||
|
|
Loading…
Add table
Reference in a new issue