openchs-models 1.30.87 → 1.30.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Schema.js +1 -2
- package/package.json +1 -1
package/dist/Schema.js
CHANGED
|
@@ -783,8 +783,7 @@ function createRealmConfig() {
|
|
|
783
783
|
_General.default.logInfo("Migration180", "Execution started");
|
|
784
784
|
|
|
785
785
|
const individualsOfInterest = newDB.objects(_Individual.default.schema.name).filtered("lowestAddressLevel = null");
|
|
786
|
-
|
|
787
|
-
_lodash.default.forEach(individualsOfInterest, individual => {
|
|
786
|
+
individualsOfInterest && individualsOfInterest.forEach(individual => {
|
|
788
787
|
_General.default.logInfo("Migration180", "Deleting individual " + individual.uuid + " and related entities");
|
|
789
788
|
|
|
790
789
|
_MigrationsHelper.default.deleteIndividual(individual, newDB);
|