Update: add update brewery post

This commit is contained in:
Aaron William Po
2023-07-04 23:27:01 -04:00
parent 232435e3d5
commit ee47f99f8a
4 changed files with 161 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
import { z } from 'zod';
import CreateBreweryPostSchema from './CreateBreweryPostSchema';
const EditBreweryPostValidationSchema = CreateBreweryPostSchema.extend({
id: z.string().cuid(),
}).omit({
address: true,
city: true,
region: true,
country: true,
});
export default EditBreweryPostValidationSchema;