fix: weigeren van invitation verandere in acceptatie door type string ipv boolean
This commit is contained in:
parent
e31c6a060d
commit
53a0571df2
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ export async function updateInvitationHandler(req: Request, res: Response): Prom
|
|||
const sender = req.body.sender;
|
||||
const receiver = req.body.receiver;
|
||||
const classId = req.body.class;
|
||||
req.body.accepted = req.body.accepted !== 'false';
|
||||
req.body.accepted = req.body.accepted !== false;
|
||||
requireFields({ sender, receiver, classId });
|
||||
|
||||
const data = req.body as TeacherInvitationData;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue