Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jacobc2700
Copy link
Contributor

@jacobc2700 jacobc2700 commented Aug 12, 2024

Refactor speakers service

@jacobc2700 jacobc2700 force-pushed the dev/jacob/speakers-refactor branch 7 times, most recently from d082bf2 to aa98282 Compare August 12, 2024 05:44
@jacobc2700 jacobc2700 changed the title Dev/jacob/speakers refactor Refactor speakers Aug 12, 2024
@jacobc2700 jacobc2700 marked this pull request as ready for review August 12, 2024 06:17

// Zod schema for speaker
export const SpeakerValidator = z.object({
speakerId: z.coerce.string().default(() => uuidv4()),
Copy link
Contributor

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()),
Copy link
Contributor

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)

Copy link
Contributor Author

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 ?

@AydanPirani
Copy link
Contributor

@jacobc2700 bumping this up!

@AydanPirani AydanPirani changed the title Refactor speakers Refactor speakers/registration schemas and db Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants