Fix user parameter (#25884)
This commit is contained in:
+2
-1
@@ -6,7 +6,7 @@ import LicenseRequired from "@calcom/features/ee/common/components/LicenseRequir
|
||||
import { UsersEditView } from "@calcom/features/ee/users/pages/users-edit-view";
|
||||
import SettingsHeader from "@calcom/features/settings/appDir/SettingsHeader";
|
||||
import { UserRepository } from "@calcom/features/users/repositories/UserRepository";
|
||||
import prisma from "@calcom/prisma";
|
||||
import { prisma } from "@calcom/prisma";
|
||||
|
||||
const userIdSchema = z.object({ id: z.coerce.number() });
|
||||
|
||||
@@ -41,6 +41,7 @@ const Page = async ({ params }: { params: Params }) => {
|
||||
|
||||
const userRepo = new UserRepository(prisma);
|
||||
const user = await userRepo.adminFindById(input.data.id);
|
||||
|
||||
const t = await getTranslate();
|
||||
|
||||
return (
|
||||
|
||||
@@ -19,11 +19,11 @@ interface User {
|
||||
weekStart: string;
|
||||
theme: string | null;
|
||||
defaultScheduleId: number | null;
|
||||
locale: string;
|
||||
timeFormat: number;
|
||||
allowDynamicBooking: boolean;
|
||||
identityProvider: string;
|
||||
role: string;
|
||||
locale: string | null;
|
||||
timeFormat: number | null;
|
||||
allowDynamicBooking: boolean | null;
|
||||
identityProvider: string | null;
|
||||
role: string | null;
|
||||
avatarUrl: string | null;
|
||||
createdDate?: string | Date;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user