Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mugli committed Oct 13, 2019
1 parent 3ed0060 commit 6d56eae
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 42 deletions.
72 changes: 34 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"node": ">=10.0.0"
},
"dependencies": {
"@hapi/joi": "^15.1.0",
"@hapi/joi": "^16.1.7",
"ioredis": "^4.14.1",
"lodash": "^4.17.15",
"redis-errors": "^1.2.0",
Expand All @@ -45,7 +45,7 @@
"@jest/test-sequencer": "^24.9.0",
"@types/eslint": "^6.1.2",
"@types/eslint-plugin-prettier": "^2.2.0",
"@types/hapi__joi": "^15.0.4",
"@types/hapi__joi": "^16.0.1",
"@types/ioredis": "^4.0.18",
"@types/lodash": "^4.14.144",
"@types/prettier": "^1.18.3",
Expand All @@ -60,7 +60,7 @@
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^22.17.0",
"eslint-plugin-jest": "^22.19.0",
"eslint-plugin-prettier": "^3.1.1",
"jest": "^24.9.0",
"jest-coverage-badges": "^1.1.2",
Expand Down
2 changes: 1 addition & 1 deletion src/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class Task {
throw new Error('Task requires an ID');
}

const { value, error } = Joi.validate(rawData, schema, validationOptions);
const { value, error } = schema.validate(rawData, validationOptions);

if (error) {
throw new Error(`Invalid rawData for task: ${error}`);
Expand Down

0 comments on commit 6d56eae

Please sign in to comment.