From 51ceaab407166e2549f14736de339b78599df43c Mon Sep 17 00:00:00 2001 From: vhvy Date: Wed, 13 Apr 2022 13:30:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=BC=E5=85=A5=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=97=B6=E4=BA=8C=E7=BB=B4=E7=A0=81=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/schema/commodity.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/schema/commodity.js b/server/src/schema/commodity.js index 8b3d800..12b3a94 100644 --- a/server/src/schema/commodity.js +++ b/server/src/schema/commodity.js @@ -2,7 +2,7 @@ import Joi from "@hapi/joi"; import { categoryNameReq, categoryName } from "./categories.js"; import { name as supplier_name } from "./suppliers.js"; -export const barcode = Joi.string().min(1).max(20); +export const barcode = Joi.string().min(1).max(40); export const name = Joi.string().min(1).max(50); export const unit = Joi.string().min(1).max(10); export const size = Joi.string().min(1).max(30); @@ -53,4 +53,4 @@ export const updateCommoditySchema = Joi.object({ export const deleteCommoditySchema = Joi.object({ barcode: barcode.required() -}); \ No newline at end of file +});