chore: Allow tracing orphaned event types (added id) (#20479)

This commit is contained in:
Alex van Andel
2025-04-01 13:56:32 +00:00
committed by GitHub
parent aaa39cccf8
commit a5c15e6517
@@ -409,7 +409,7 @@ export const getPublicEvent = async (
(await getOwnerFromUsersArray(prisma, event.id));
if (users === null) {
throw new Error("Event has no owner");
throw new Error(`EventType ${event.id} has no owner or users.`);
}
//In case the event schedule is not defined ,use the event owner's default schedule
if (!eventWithUserProfiles.schedule && eventWithUserProfiles.owner?.defaultScheduleId) {