diff --git a/src/controllers/registrationfee.ts b/src/controllers/registrationfee.ts index 74566a8..66af3b6 100644 --- a/src/controllers/registrationfee.ts +++ b/src/controllers/registrationfee.ts @@ -163,8 +163,10 @@ export class RegistrationFeeController { id: Joi.string().uuid().required().label("ID"), }); - const param: any = await schema.validateAsync(req.body); - + const param: any = await schema.validateAsync({ + ...req.body, + id: req.params.id + }); if (param.service && param.service.length > 0) { for (const serviceId of param.service) { const serviceExist = await OrmHelper.DB.getRepository(Service)