fix adding assignments

This commit is contained in:
Dobromir Popov
2024-02-28 21:46:12 +02:00
parent aa36af8615
commit ea0cfeb0db
2 changed files with 4 additions and 2 deletions

View File

@ -103,7 +103,7 @@ function ShiftComponent({ shift, onShiftSelect, isSelected, onPublisherSelect, a
const newAssignment = {
publisher: { connect: { id: publisher.id } },
shift: { connect: { id: shiftId } },
isactive: true,
//isactive: true,
isConfirmed: true
};
const { data } = await axiosInstance.post("/api/data/assignments", newAssignment);