move files around

This commit is contained in:
Ben Ramey
2018-09-20 06:46:02 -05:00
parent 8eba063aef
commit 4e114f8de4
5 changed files with 8 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ const parseAndValidateBody = async (schema, body) => {
};
const validateBody = (schema, body) => {
const ajv = new Ajv();
const ajv = new Ajv({$data: true});
const validate = ajv.compile(schema);
const isValid = validate(body);