hotFix(getBalance): if null
gitea/salix/pipeline/pr-master This commit looks good
Details
gitea/salix/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
54499ae4dc
commit
a00dd82f14
|
@ -27,7 +27,7 @@ module.exports = Self => {
|
||||||
|
|
||||||
const where = filter.where;
|
const where = filter.where;
|
||||||
const query = 'CALL vn.item_getBalance(?, ?, ?)';
|
const query = 'CALL vn.item_getBalance(?, ?, ?)';
|
||||||
if (where.date) {
|
if (where?.date) {
|
||||||
where.date = new Date(where.date);
|
where.date = new Date(where.date);
|
||||||
where.date.setHours(0, 0, 0, 0);
|
where.date.setHours(0, 0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue