Reportistica Ore 3
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user