Reportistica Ore 3

This commit is contained in:
Paolo Arena
2021-02-25 02:59:25 +01:00
parent 39c08afb95
commit 4800186161
6 changed files with 23 additions and 5 deletions

View File

@@ -126,6 +126,7 @@ module.exports.getTotalHoursByDate = async function (idapp, userId, date) {
{
$gte: new Date(tools.getstrDateYYYY_MM_DD(date)),
$lte: new Date(tools.getstrDateYYYY_MM_DD(tools.AddDate(date, 1)))
// $lte: new Date('2023-01-01')
}
},
},
@@ -145,6 +146,8 @@ module.exports.getTotalHoursByDate = async function (idapp, userId, date) {
]
;
try {
const ris = await Hours.aggregate(myfind);
if (ris.length > 0) {