Compare commits

..

No commits in common. "7b9fe95cd45953d5a276f4eb14249e0fe6166f4d" and "6844b1fb24c3539b6999c04f6ea0430f5975c12a" have entirely different histories.

2 changed files with 2 additions and 2 deletions
src/routes/api/v1

@ -47,7 +47,7 @@ const schema_post = validator.object({
// MARK: UPDATE products // MARK: UPDATE products
const schema_patch = validator const schema_patch = validator
.object({ .object({
id: validator.number().positive().precision(0).required(), id: validator.number().positive().precision(0),
gtin: validator gtin: validator
.string() .string()
.min(8) .min(8)

@ -95,7 +95,7 @@ async function post(req: Request, res: Response) {
.create({ .create({
data: { data: {
name: value.name, name: value.name,
code: (value.code === '0000') ? null : value.code code: value.code
}, },
select: { select: {
id: true id: true