chore: Remove passing optional prisma select prop to Repository classes (#16600)
This commit is contained in:
1 parent
4a59841b02
commit
55e1e0fa3d
7 files changed
+81
-61
No files matched your search
@@ -43,12 +43,8 @@ const Page = async ({ params }: PageProps) => {
|
||||
let userData, schedule, travelSchedules;
|
||||
|
||||
try {
|
||||
userData = await UserRepository.findById({
|
||||
id: userId,
|
||||
select: {
|
||||
timeZone: true,
|
||||
defaultScheduleId: true,
|
||||
},
|
||||
userData = await UserRepository.getTimeZoneAndDefaultScheduleId({
|
||||
userId,
|
||||
});
|
||||
if (!userData?.timeZone || !userData?.defaultScheduleId) {
|
||||
throw new Error("timeZone and defaultScheduleId not found");
|
||||
|
||||
@@ -12,7 +12,7 @@ import MeetingNotStarted from "~/videos/views/videos-meeting-not-started-single-
|
||||
|
||||
export const generateMetadata = async ({ params, searchParams }: _PageProps) => {
|
||||
const p = { ...params, ...searchParams };
|
||||
const booking = await BookingRepository.findBookingByUidWithOptionalSelect({
|
||||
const booking = await BookingRepository.findBookingByUid({
|
||||
bookingUid: typeof p?.uid === "string" ? p.uid : "",
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user