This commit is contained in:
parent
b0575a81a0
commit
a7128b8187
|
@ -59,7 +59,7 @@ module.exports = Self => {
|
|||
|
||||
if (ctx.args && args.to) {
|
||||
const dateTo = args.to;
|
||||
dateTo.setHours(23, 59, 0, 0);
|
||||
dateTo.setHours(23, 59, 59, 999);
|
||||
}
|
||||
|
||||
const where = buildFilter(args, (param, value) => {
|
||||
|
@ -72,7 +72,6 @@ module.exports = Self => {
|
|||
return {'t.amount': (value * 100)};
|
||||
case 'from':
|
||||
return {'t.created': {gte: value}};
|
||||
|
||||
case 'to':
|
||||
return {'t.created': {lte: value}};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue