Fix validation object

Fixes #3375
This commit is contained in:
rijkvanzanten
2020-12-14 19:09:35 -05:00
parent a59e8c8d7a
commit 2c032cd44d

View File

@@ -64,7 +64,7 @@ export default function generateJoi(filter: Filter | null): AnySchema {
if (!schema) schema = {};
const operator = Object.keys(value)[0];
const val = Object.keys(value)[1];
const val = Object.values(value)[0];
schema[key] = getJoi(operator, val);
}