fix: improve cashbox batches logs
This commit is contained in:
parent
1d5b758e39
commit
463195fc17
2 changed files with 29 additions and 2 deletions
|
|
@ -5,7 +5,8 @@ const logDateFormat = require('../../../logs').logDateFormat
|
|||
const resolvers = {
|
||||
Query: {
|
||||
cashboxBatches: () => cashbox.getBatches(),
|
||||
cashboxBatchesCsv: (...[, { from, until, timezone }]) => cashbox.getBatches(from, until).then(data => parseAsync(logDateFormat(timezone, data, ['created'])))
|
||||
cashboxBatchesCsv: (...[, { from, until, timezone }]) => cashbox.getBatches(from, until)
|
||||
.then(data => parseAsync(logDateFormat(timezone, cashbox.logFormatter(data), ['created'])))
|
||||
},
|
||||
Mutation: {
|
||||
createBatch: (...[, { deviceId, cashboxCount }]) => cashbox.createCashboxBatch(deviceId, cashboxCount),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue