Skip to content

Commit

Permalink
修改导入文件时二维码长度
Browse files Browse the repository at this point in the history
  • Loading branch information
vhvy authored Apr 13, 2022
1 parent c47df91 commit 51ceaab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/schema/commodity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -53,4 +53,4 @@ export const updateCommoditySchema = Joi.object({

export const deleteCommoditySchema = Joi.object({
barcode: barcode.required()
});
});

0 comments on commit 51ceaab

Please sign in to comment.