Skip to content

Commit

Permalink
revert to ekid for legacy as well
Browse files Browse the repository at this point in the history
  • Loading branch information
UnsungHero97 committed Feb 17, 2022
1 parent a4dd371 commit 0ff5725
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ class V3StudyMigrationUpgrade(
entitySets.keySet(
Predicates.equal<UUID, EntitySet>("name", "chronicle_participants_${legacyStudyFqnToValue.getOrDefault(FullQualifiedName("general.stringid"), null)}")
).forEach { participantESID ->
val legacyStudyStringId = UUID.fromString(legacyStudyFqnToValue[FullQualifiedName("general.stringid")]!!.first() as String)
dataQueryService.getEntitiesWithPropertyTypeFqns(
mapOf(participantESID to Optional.of(setOf<UUID>())),
mapOf(participantESID to legacyParticipantPropertyTypes),
Expand All @@ -196,7 +195,7 @@ class V3StudyMigrationUpgrade(
false
).forEach { (_, legacyParticipantFqnToValue) ->
logger.info("Inserting participant: $legacyParticipantFqnToValue into candidates")
insertIntoCandidatesTable(connection, legacyStudyStringId, legacyParticipantFqnToValue)
insertIntoCandidatesTable(connection, legacyStudyEkid, legacyParticipantFqnToValue)
}
}
} catch (ex: Exception) {
Expand Down

0 comments on commit 0ff5725

Please sign in to comment.