finally fix session dependant Form save redirect url
This commit is contained in:
@ -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}`
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user