refactor: remove usage of deprecated user.startTime and user.endTime columns (#27085)
These columns are marked as deprecated in the Prisma schema and will be removed in a follow-up migration. This PR removes all code references to prepare for the column removal. Changes: - Remove startTime/endTime from ProfileRepository userSelect and methods - Remove startTime/endTime from UserRepository userSelect and methods - Remove startTime/endTime from me/get.handler.ts API response - Remove endTime from API v1 user validation schema Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
ccf99fbb6b
commit
1e1379546b
4 files changed
+71
-190
No files matched your search
@@ -1,10 +1,8 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import { checkUsername } from "@calcom/features/profile/lib/checkUsername";
|
||||
import { emailSchema } from "@calcom/lib/emailSchema";
|
||||
import { iso8601 } from "@calcom/prisma/zod-utils";
|
||||
import { UserSchema } from "@calcom/prisma/zod/modelSchema/UserSchema";
|
||||
|
||||
import { iso8601 } from "@calcom/prisma/zod-utils";
|
||||
import { z } from "zod";
|
||||
import { isValidBase64Image } from "~/lib/utils/isValidBase64Image";
|
||||
import { timeZone } from "~/lib/validations/shared/timeZone";
|
||||
|
||||
@@ -162,7 +160,6 @@ export const schemaUserReadPublic = UserSchema.pick({
|
||||
avatarUrl: true,
|
||||
timeZone: true,
|
||||
weekStart: true,
|
||||
endTime: true,
|
||||
bufferTime: true,
|
||||
appTheme: true,
|
||||
theme: true,
|
||||
|
||||
Reference in new issue
Block a user