createExceptionLookupMap
Function: createExceptionLookupMap()
createExceptionLookupMap(
exceptions):Map<string, {createdAt:Date;creatorId:string|null;exceptionData:unknown;id:string;organizationId:string;recurringEventInstanceId:string;updatedAt:Date|null;updaterId:string|null; }>
Defined in: src/services/eventGeneration/instanceResolver.ts:226
Creates a lookup map for event exceptions to enable efficient batch processing. The map is keyed by a composite key of the recurring event ID and instance start time.
Parameters
exceptions
object[]
An array of event exceptions.
Returns
Map<string, { createdAt: Date; creatorId: string | null; exceptionData: unknown; id: string; organizationId: string; recurringEventInstanceId: string; updatedAt: Date | null; updaterId: string | null; }>
- A map of exceptions, keyed for quick lookup.