Skip to content

Scheduling infrastructure for absolutely everyone.

fix: unable to update host schedules (#17649)

Anik Dhabal Babu7246fa40841b
diff --git a/packages/trpc/server/routers/viewer/eventTypes/update.handler.ts b/packages/trpc/server/routers/viewer/eventTypes/update.handler.ts
index bf17c685e25..6706dbfdc0b 100644
--- a/packages/trpc/server/routers/viewer/eventTypes/update.handler.ts
+++ b/packages/trpc/server/routers/viewer/eventTypes/update.handler.ts
@@ -316,6 +316,7 @@ export const updateHandler = async ({ ctx, input }: UpdateOptions) => {
isFixed: data.schedulingType === SchedulingType.COLLECTIVE || host.isFixed,
priority: host.priority ?? 2,
weight: host.weight ?? 100,
+ scheduleId: host.scheduleId ?? null,
},
})),
};