fix: missing comma in migration file
fix: default value for customer notes fix: remove custom requirements divider when there are no requirements set
This commit is contained in:
parent
e0529efb92
commit
01841c03ba
3 changed files with 4 additions and 4 deletions
|
|
@ -670,7 +670,7 @@ function getCustomersList (phone = null, name = null, address = null, id = null)
|
|||
.then(customers => Promise.all(_.map(customer => {
|
||||
return populateOverrideUsernames(customer)
|
||||
.then(camelize)
|
||||
.then(it => ({ ...it, notes: it.notes.map(camelize) }))
|
||||
.then(it => ({ ...it, notes: (it.notes ?? []).map(camelize) }))
|
||||
}, customers)))
|
||||
}
|
||||
|
||||
|
|
@ -723,7 +723,7 @@ function getCustomerById (id) {
|
|||
})
|
||||
.then(populateOverrideUsernames)
|
||||
.then(camelize)
|
||||
.then(it => ({ ...it, notes: it.notes.map(camelize) }))
|
||||
.then(it => ({ ...it, notes: (it.notes ?? []).map(camelize) }))
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue