Remove commented out, unneeded code

This commit is contained in:
Matt Rider 2019-08-23 11:30:20 +02:00
parent 773779e5f1
commit abbfc6d757

View File

@ -69,7 +69,6 @@ const validateUpdatePost = async (resolve, root, args, context, info) => {
if (categoryIds && categoryIds.length > 3) {
throw new UserInputError(NO_CATEGORIES_ERR_MESSAGE)
}
// return resolve(root, args, context, info)
} else {
if (!Array.isArray(categoryIds) || !categoryIds.length || categoryIds.length > 3) {
throw new UserInputError(NO_CATEGORIES_ERR_MESSAGE)