Skip to content

Commit

Permalink
fix(Collections): only update cover photo via upload (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeaturner authored Apr 7, 2023
1 parent be895bb commit a5b4fc1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions server/api/collections.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,6 @@ const editCollection = (req, res) => {
if (req.body.title) {
updateData.title = req.body.title;
}
if (req.body.coverPhoto) {
updateData.coverPhoto = req.body.coverPhoto;
}
if (req.body.privacy) {
updateData.privacy = req.body.privacy;
}
Expand Down Expand Up @@ -900,10 +897,6 @@ const validate = (method) => {
.optional({ checkFalsy: true })
.isString()
.isLength({ min: 3 }),
body("coverPhoto", conductorErrors.err1)
.optional({ checkFalsy: true })
.isString()
.isLength({ min: 2 }),
body("privacy", conductorErrors.err1)
.optional({ checkFalsy: true })
.isString()
Expand Down

0 comments on commit a5b4fc1

Please sign in to comment.