mirror of
https://github.com/outline/outline.git
synced 2026-12-03 18:10:36 +03:00
Fixes: Server error when validating UUID against empty value
This commit is contained in:
1 parent
346ea4df89
commit
0b1a4c6184
1 file changed
+1
-1
@@ -25,7 +25,7 @@ export default function validation() {
|
||||
};
|
||||
|
||||
ctx.assertUuid = (value, message) => {
|
||||
if (!validator.isUUID(value.toString())) {
|
||||
if (!validator.isUUID(value.toString() || '')) {
|
||||
throw new ValidationError(message);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user