Skip to content

Commit

Permalink
Onboard Prep
Browse files Browse the repository at this point in the history
  • Loading branch information
johnny-t06 committed Oct 10, 2024
1 parent 3bc40af commit 3a7ef0b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ enum Role {
model User {
id String @id @default(auto()) @map("_id") @db.ObjectId
firstName String @default("")
lastName String @default("")
email String @default("")
EventIds String[] @db.ObjectId
Events Event[] @relation(fields: [EventIds], references: [id])
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/user/route.client.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const addUser = async (request: {
body: { user: { firstName: string; lastName: string; email: string } };
body: { user: { firstName: string; email: string } };
}) => {
const { body, ...options } = request;
const response = await fetch("/api/user", {
Expand Down
1 change: 0 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default function Home() {
body: {
user: {
firstName: "Johnny",
lastName: "Tan",
email: "[email protected]",
},
},
Expand Down

0 comments on commit 3a7ef0b

Please sign in to comment.