fix missing shifts in myshifts;
fix serialization error
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user