Skip to content

Commit

Permalink
Merge branch 'develop' into EPICSYSTEM-16-document-date-correction
Browse files Browse the repository at this point in the history
  • Loading branch information
tolkamps1 committed Feb 14, 2024
2 parents d4c0da5 + 339f4ca commit 2d1a3be
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions api/controllers/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,14 +446,6 @@ exports.protectedPut = async function (args, res) {

var Comment = mongoose.model('Comment');

var vcs = [];
obj.valuedComponents.forEach(function (vc) {
if (!mongoose.Types.ObjectId.isValid(vc)) {
return Actions.sendResponse(res, 400, { });
}
vcs.push(mongoose.Types.ObjectId(vc));
});

var comment = {
isAnonymous: obj.isAnonymous,
datePosted: obj.datePosted,
Expand All @@ -466,7 +458,6 @@ exports.protectedPut = async function (args, res) {
publishedNotes: obj.publishedNotes,
rejectedNotes: obj.rejectedNotes,
rejectedReason: obj.rejectedReason,
valuedComponents: vcs,
// TODO
// documents: obj.documents,
};
Expand Down

0 comments on commit 2d1a3be

Please sign in to comment.