Reportistica Ore 3
This commit is contained in:
@@ -61,7 +61,7 @@ router.post('/load', authenticate, async (req, res) => {
|
||||
//let myhours = await Hours.getHoursByIdCat(idapp, myuser._id, myproj._id, date_start, date_end);
|
||||
let mydate = new Date(mydatets);
|
||||
let rechours = await Hours.getHoursByDate(idapp, myuser._id, mydate);
|
||||
let ressum = await Hours.getTotalHoursByDate(idapp, myuser._id, mydate);
|
||||
let ressum = await Hours.getTotalHoursByDate(idapp, myuser.id, mydate);
|
||||
|
||||
if (tools.isMonday(mydatets)) {
|
||||
totalacchours[myuser.username] = 0;
|
||||
@@ -98,7 +98,7 @@ router.post('/load', authenticate, async (req, res) => {
|
||||
colors.themebgcolor = mytodo.themebgcolor;
|
||||
colors.themecolor = mytodo.themecolor;
|
||||
myproj = await Project.findProjectByUserId('', mytodo.category);
|
||||
if (!themebgcolor && myproj) {
|
||||
if (!colors.themebgcolor && myproj) {
|
||||
colors.themebgcolor = myproj.themebgcolor;
|
||||
colors.themecolor = myproj.themecolor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user