chore: Syncs changes that were erroneously made in enterprise repo (#1949)
This commit is contained in:
@ -48,6 +48,12 @@ export default function validation() {
|
||||
}
|
||||
};
|
||||
|
||||
ctx.assertValueInArray = (value, values, message) => {
|
||||
if (!values.includes(value)) {
|
||||
throw new ValidationError(message);
|
||||
}
|
||||
};
|
||||
|
||||
return next();
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user