hotFix(getBalance): if null
gitea/salix/pipeline/pr-master This commit looks good Details

This commit is contained in:
Robert Ferrús 2024-05-02 08:21:39 +02:00
parent 54499ae4dc
commit a00dd82f14
1 changed files with 1 additions and 1 deletions

View File

@ -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);
} }