chore: Allow tracing orphaned event types (added id) (#20479)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user