fix: customers and vendors nullable.

This commit is contained in:
Ahmed Bouhuolia
2020-11-30 10:59:28 +02:00
parent fe55c84941
commit cefcfddc56
3 changed files with 176 additions and 39 deletions

View File

@@ -74,7 +74,7 @@ export default class VendorsController extends ContactsController {
get vendorDTOSchema(): ValidationChain[] {
return [
check('currency_code')
.optional()
.optional({ nullable: true })
.isString()
.trim()
.escape()