Skip to content

Commit

Permalink
Removed clg
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajoy10 committed Apr 7, 2024
1 parent b36ba75 commit 92d0a6f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/controllers/participants.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,10 @@ const update = async (req, res) => {
message: "Not Found. No participant was found for the given ID.",
});
}
console.log(req.body);

if (req.body.name) participant.name = req.body.name;
if (req.body.registrationID) participant.registrationID = req.body.registrationID;
if (req.body.certificateEligible !== undefined) participant.certificateEligible = req.body.certificateEligible;
console.log(participant)
await participant.save();

return res.json({
Expand Down

0 comments on commit 92d0a6f

Please sign in to comment.