Skip to content

Commit

Permalink
accept timeZone while createNewUsers... and default TZ
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayraghav-io committed Dec 20, 2024
1 parent 355aaa7 commit 1672250
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Schedule" ALTER COLUMN "timeZone" SET DEFAULT 'Europe/London';
2 changes: 1 addition & 1 deletion packages/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ model Schedule {
eventType EventType[]
instantMeetingEvents EventType[] @relation("InstantMeetingSchedule")
name String
timeZone String?
timeZone String? @default("Europe/London")
availability Availability[]
Host Host[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ export async function createNewUsersConnectToOrgIfExists({
})),
},
},
...(timeZone && { timeZone }),
},
},
},
Expand Down

0 comments on commit 1672250

Please sign in to comment.