Skip to content

Commit 67f21e8

Browse files
authored
Merge pull request #3 from ramimoshe/allow-no-schema
use default validation value when saving the controller
2 parents f7b8630 + a0b18a4 commit 67f21e8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "queue-router",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "",
55
"main": "index.js",
66
"directories": {

src/Router.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ class Router {
3232
if (validationResult.error) {
3333
throw new Error(`invalid config object, error: ${validationResult.error}`);
3434
}
35-
36-
this._controllers.set(type, config);
35+
this._controllers.set(type, validationResult.value);
3736
}
3837

3938
remove(type) {

0 commit comments

Comments
 (0)