Skip to content

Commit

Permalink
Use simulated id rather than directive id as key for simulatedActivit…
Browse files Browse the repository at this point in the history
…yRecords
  • Loading branch information
mattdailis committed Apr 1, 2023
1 parent cc591d1 commit f2caf57
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1116,11 +1116,11 @@ private void postActivities(
{
final var simulatedActivityRecords = simulatedActivities.entrySet().stream()
.collect(Collectors.toMap(
e -> simulationActivityDirectiveIdToMerlinActivityDirectiveId.get(e.getValue().directiveId().get()).id(),
e -> e.getKey().id(),
e -> simulatedActivityToRecord(e.getValue(), simulationActivityDirectiveIdToMerlinActivityDirectiveId)));
final var allActivityRecords = unfinishedActivities.entrySet().stream()
.collect(Collectors.toMap(
e -> simulationActivityDirectiveIdToMerlinActivityDirectiveId.get(e.getValue().directiveId().get()).id(),
e -> e.getKey().id(),
e -> unfinishedActivityToRecord(e.getValue(), simulationActivityDirectiveIdToMerlinActivityDirectiveId)));
allActivityRecords.putAll(simulatedActivityRecords);
final var simIdToPgId = postSpans(
Expand Down

0 comments on commit f2caf57

Please sign in to comment.