-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor speakers/registration schemas and db #120
base: main
Are you sure you want to change the base?
Conversation
d082bf2
to
aa98282
Compare
aa98282
to
4085789
Compare
|
||
// Zod schema for speaker | ||
export const SpeakerValidator = z.object({ | ||
speakerId: z.coerce.string().default(() => uuidv4()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this
import { v4 as uuidv4 } from "uuid"; | ||
|
||
// Zod schema for speaker | ||
export const SpeakerValidator = z.object({ | ||
speakerId: z.coerce.string().default(() => uuidv4()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this shouldnt be needed - also make changes to speaker, so that we have the following:
GET /speakers/:SPEAKERID
PUT /speakers/:SPEAKERID
POST /speakers/ (create speakerid)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think those endpoints were added already ?
@jacobc2700 bumping this up! |
Refactor speakers service