Skip to content

Commit

Permalink
fix(validators): allow any values for isIn/notIn
Browse files Browse the repository at this point in the history
  • Loading branch information
lukashroch committed Oct 24, 2021
1 parent ea006fc commit f04f3e7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"prettyjson": "1.2.1",
"reflect-metadata": "0.1.13",
"release-it": "14.11.6",
"sequelize": "6.6.5",
"sequelize": "6.8.0",
"sinon": "11.1.2",
"sinon-chai": "3.7.0",
"source-map-support": "0.5.20",
Expand All @@ -144,6 +144,6 @@
"@types/node": "*",
"@types/validator": "*",
"reflect-metadata": "*",
"sequelize": ">=6.6.5"
"sequelize": ">=6.8.0"
}
}
2 changes: 1 addition & 1 deletion src/validation/is-in.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { addAttributeOptions } from '../model/column/attribute-service';
/**
* Check the value is one of these
*/
export function IsIn(arg: string[][] | { msg: string; args: string[][] }): Function {
export function IsIn(arg: any[][] | { msg: string; args: any[][] }): Function {
return (target: any, propertyName: string) =>
addAttributeOptions(target, propertyName, {
validate: {
Expand Down
2 changes: 1 addition & 1 deletion src/validation/not-in.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { addAttributeOptions } from '../model/column/attribute-service';
/**
* Check the value is not one of these
*/
export function NotIn(arg: string[][] | { msg: string; args: string[][] }): Function {
export function NotIn(arg: any[][] | { msg: string; args: any[][] }): Function {
return (target: any, propertyName: string) =>
addAttributeOptions(target, propertyName, {
validate: {
Expand Down

0 comments on commit f04f3e7

Please sign in to comment.