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 sender = req.body.sender; | ||||||
|     const receiver = req.body.receiver; |     const receiver = req.body.receiver; | ||||||
|     const classId = req.body.class; |     const classId = req.body.class; | ||||||
|     req.body.accepted = req.body.accepted !== 'false'; |     req.body.accepted = req.body.accepted !== false; | ||||||
|     requireFields({ sender, receiver, classId }); |     requireFields({ sender, receiver, classId }); | ||||||
| 
 | 
 | ||||||
|     const data = req.body as TeacherInvitationData; |     const data = req.body as TeacherInvitationData; | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 laurejablonski
						laurejablonski