Skip to content

Commit

Permalink
Merge pull request #3 from ramimoshe/allow-no-schema
Browse files Browse the repository at this point in the history
use default validation value when saving the controller
  • Loading branch information
ramimoshe authored May 27, 2019
2 parents f7b8630 + a0b18a4 commit 67f21e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "queue-router",
"version": "0.2.1",
"version": "0.2.2",
"description": "",
"main": "index.js",
"directories": {
Expand Down
3 changes: 1 addition & 2 deletions src/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ class Router {
if (validationResult.error) {
throw new Error(`invalid config object, error: ${validationResult.error}`);
}

this._controllers.set(type, config);
this._controllers.set(type, validationResult.value);
}

remove(type) {
Expand Down

0 comments on commit 67f21e8

Please sign in to comment.