finally fix session dependant Form save redirect url

This commit is contained in:
Dobromir Popov
2024-04-30 15:33:54 +03:00
parent 08349dc870
commit e291f25773
3 changed files with 9 additions and 6 deletions

View File

@ -95,7 +95,7 @@ export default async function handler(req, res) {
res.redirect(messagePageUrl);
return;
}
let originalPublisher = assignment.publisher;
let to = assignment.shift.assignments.map(a => a.publisher.email);
to.push(publisher.email);
@ -138,7 +138,7 @@ export default async function handler(req, res) {
publisher: { connect: { id: publisher.id } },
shift: { connect: { id: assignment.shiftId } },
type: EventLogType.AssignmentReplacementAccepted,
content: "Заявка за заместване приета от " + publisher.firstName + " " + publisher.lastName
content: `Заявката за заместване на ${originalPublisher.firstName} ${originalPublisher.lastName} е приета от ${publisher.firstName} ${publisher.lastName}`
}
});