openchs-models 1.32.48 → 1.32.50

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.
Files changed (2) hide show
  1. package/dist/Schema.js +6 -3
  2. package/package.json +1 -1
package/dist/Schema.js CHANGED
@@ -988,9 +988,12 @@ function createRealmConfig() {
988
988
  }
989
989
 
990
990
  if (oldDB.schemaVersion < 203) {
991
- _lodash.default.forEach(newDB.objects("SubjectType"), stype => {
992
- stype.loadedSince = _EntitySyncStatus.default.REALLY_OLD_DATE.getTime();
993
- });
991
+ const entities = newDB.objects(_EntitySyncStatus.default.schema.name).filtered("entityName = $0", "SubjectType");
992
+
993
+ if (entities.length === 1) {
994
+ const stype = entities[0];
995
+ stype.loadedSince = _EntitySyncStatus.default.REALLY_OLD_DATE;
996
+ }
994
997
  }
995
998
  }
996
999
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "openchs-models",
3
3
  "description": "OpenCHS data model to be used by front end clients",
4
- "version": "1.32.48",
4
+ "version": "1.32.50",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",