Skip to content

Commit

Permalink
Merge pull request #97 from andela/bg-fix-comment-issues-168404385
Browse files Browse the repository at this point in the history
#168404385  fix like and dislike comment issues
  • Loading branch information
MemunaHaruna committed Sep 10, 2019
2 parents 68c920a + 90b943e commit 81f0b79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/helpers/commonAction/hasReacted.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ export default async (req, res, next, action) => {

const didReact = await switchCommentReaction(whereObject, where, status.OK, `You have successfully ${msg} this comment`);
/* istanbul ignore next */
if (didReact === false) { next(); } else { res.status(status).json(didReact); }
if (didReact === false) { next(); } else { res.status(status.OK).json(didReact); }
};
2 changes: 1 addition & 1 deletion src/helpers/constants/validation.schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const validRatings = {
};

const SLUG_MIN_LENGTH = 3;
const SLUG_MAX_LENGTH = 45;
const SLUG_MAX_LENGTH = 150;

const TAGNAME_CONTENT_MIN_LENGTH = 1;
const TAGNAME_CONTENT_MAX_LENGTH = 30;
Expand Down

0 comments on commit 81f0b79

Please sign in to comment.