Allow explicit control over actor ID uniqueness in project scheduling state resolution

This commit is contained in:
2026-04-27 16:35:02 +02:00
parent e7fa39a1aa
commit 6150b4c162

View File

@@ -484,11 +484,14 @@ export function resolveRuntimeProjectScheduleState(options: {
scheduler: ProjectScheduler;
sequences: ProjectSequenceLibrary;
actorIds: string[];
actorIdsAreUnique?: boolean;
dayNumber: number;
timeOfDayHours: number;
pathsById?: ReadonlyMap<string, RuntimeProjectSchedulePathDefinition>;
}): RuntimeResolvedProjectScheduleState {
const actorIds = [...new Set(options.actorIds)];
const actorIds = options.actorIdsAreUnique
? options.actorIds
: [...new Set(options.actorIds)];
return {
actors: actorIds.map((actorId) =>