mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 18:52:06 +00:00
Update: add update brewery post
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user