This commit is contained in:
xfarrow
2024-10-17 17:11:56 +02:00
parent ca5e201dc4
commit 10aa3460a3
2 changed files with 6 additions and 5 deletions

View File

@ -23,8 +23,8 @@ const createOrganizationValidator = [
check('location').trim().escape().isLength({
max: 256
}),
check('description').trim().escape(),
check('is_hiring').isBoolean()
check('description').optional().trim().escape(),
check('isHiring').optional().isBoolean()
];
const updateOrganizationValidator = [
@ -34,8 +34,8 @@ const updateOrganizationValidator = [
check('location').trim().escape().isLength({
max: 256
}),
check('description').trim().escape(),
check('is_hiring').optional().isBoolean()
check('description').optional().trim().escape(),
check('isHiring').optional().isBoolean()
];
const deleteOrGetOrganizationValidator = [