Skip to content
Snippets Groups Projects
Commit a8424c6e authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

disallow to update attendance or comment on activity

parent 2d0afcde
No related branches found
No related tags found
2 merge requests!20working endpoints and documentation,!4API Endpoints - benji
Pipeline #4664 passed
......@@ -185,7 +185,7 @@ exports.default.updateOne = async (req, res) => {
try {
const activity = await Activity.findOneAndUpdate(
{ _id: req.params.id },
req.body,
omit(req.body, ['attendance', 'comment']),
{ new: true }
)
.populate({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment