feat: remove parent item category from item categories service.

This commit is contained in:
Ahmed Bouhuolia
2020-12-02 17:38:49 +02:00
parent e0f1b71930
commit ac6904daaa
5 changed files with 1 additions and 22 deletions

View File

@@ -84,10 +84,6 @@ export default class ItemsCategoriesController extends BaseController {
.trim()
.escape()
.isLength({ min: 0, max: DATATYPES_LENGTH.STRING }),
check('parent_category_id')
.optional({ nullable: true })
.isInt({ min: 0, max: DATATYPES_LENGTH.INT_10 })
.toInt(),
check('description')
.optional({ nullable: true })
.isString()