Skip to content

Commit

Permalink
avniproject/avni-client#1161 | Avoid failing sync with "uuid call on …
Browse files Browse the repository at this point in the history
…undefined" error after running migration 180
  • Loading branch information
himeshr committed Nov 7, 2023
1 parent 29cf8d1 commit dd64783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ function createRealmConfig() {
if (oldDB.schemaVersion < 180) {
General.logInfo("Migration180", "Execution started")
const individualsOfInterest = newDB.objects(Individual.schema.name).filtered("lowestAddressLevel = null");
_.forEach(individualsOfInterest, (individual) => {
individualsOfInterest && individualsOfInterest.forEach((individual) => {
General.logInfo("Migration180", "Deleting individual " + individual.uuid + " and related entities")
MigrationsHelper.deleteIndividual(individual, newDB);
})
Expand Down

0 comments on commit dd64783

Please sign in to comment.