Skip to content

Commit

Permalink
Remove no longer used, independent group id validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
francisbrito committed May 6, 2018
1 parent 99a954e commit 32071a7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ function factory({ entryStorage }) {
name: err.name,
message: err.message,
}),
[GroupIdValidationError.name]: () =>
res.status(httpStatus.UNPROCESSABLE_ENTITY).json({
name: err.name,
message: err.message,
}),
};

const onError = errorHandlers[err.name] || next;
Expand Down
3 changes: 0 additions & 3 deletions lib/dtos.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,3 @@ const entrySchema = joi

exports.createEntryDto = input =>
matchSchemaOrThrow({ input, schema: entrySchema, error: EntryValidationError });

exports.createGroupIdDto = input =>
matchSchemaOrThrow({ input, schema: groupIdSchema, error: GroupIdValidationError });

0 comments on commit 32071a7

Please sign in to comment.