fix missing shifts in myshifts;

fix serialization error
This commit is contained in:
Dobromir Popov
2024-05-04 16:19:31 +03:00
parent 3d379cd828
commit 3b90128927
3 changed files with 28 additions and 16 deletions

View File

@ -647,6 +647,7 @@ async function getCalendarEvents(publisherId, date, availabilities = true, assig
assignments: {
select: {
id: true,
// publisherId: true,
shift: {
select: {
id: true,
@ -689,15 +690,13 @@ async function getCalendarEvents(publisherId, date, availabilities = true, assig
date: new Date(item.shift.startTime),
startTime: new Date(item.shift.startTime),
endTime: new Date(item.shift.endTime),
publisherId: item.publisherid,
// publisherId: item.publisherId,
publisherId: publisher.id,
type: "assignment",
});
});
}
}
return result;
}