BIG-68: fix purchase description always returning NULL.

This commit is contained in:
a.bouhuolia
2021-09-13 19:33:57 +02:00
parent 03aad751fd
commit 1bcd55e794

View File

@@ -136,7 +136,7 @@ export default class ItemsController extends BaseController {
.trim()
.escape()
.isLength({ max: DATATYPES_LENGTH.TEXT }),
check('cost_description')
check('purchase_description')
.optional({ nullable: true })
.isString()
.trim()