diff --git a/src/main/kotlin/com/openlattice/mechanic/upgrades/V3StudyMigrationUpgrade.kt b/src/main/kotlin/com/openlattice/mechanic/upgrades/V3StudyMigrationUpgrade.kt index 1c4e2cf5..e1592cc5 100644 --- a/src/main/kotlin/com/openlattice/mechanic/upgrades/V3StudyMigrationUpgrade.kt +++ b/src/main/kotlin/com/openlattice/mechanic/upgrades/V3StudyMigrationUpgrade.kt @@ -186,7 +186,6 @@ class V3StudyMigrationUpgrade( entitySets.keySet( Predicates.equal("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())), mapOf(participantESID to legacyParticipantPropertyTypes), @@ -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) {