@trudb/tru-common-lib 0.2.470 → 0.2.472

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.
@@ -8221,8 +8221,11 @@ class TruDataChangeParser {
8221
8221
  }
8222
8222
  else if (entity[key] !== this.checkIfDateTime(change.properties[key], entity[key], entityType.typeName)) {
8223
8223
  if (!propertyModified) {
8224
- entity[key] = this.checkIfDateTime(change.properties[key], entity[key], entityType.typeName);
8225
- delete originalValues[key];
8224
+ let newValue = this.checkIfDateTime(change.properties[key], entity[key], entityType.typeName);
8225
+ if (entity[key] !== newValue) {
8226
+ entity[key] = newValue;
8227
+ delete originalValues[key];
8228
+ }
8226
8229
  }
8227
8230
  else {
8228
8231
  let value = this.checkIfDateTime(change.properties[key], entity[key], entityType.typeName);
@@ -8288,7 +8291,7 @@ class TruDataChangeParser {
8288
8291
  update = async (payload) => {
8289
8292
  await this.isSaving();
8290
8293
  var reloadResults = false;
8291
- payload.changes.filter((change) => { return change.modifiedRef.toString() !== this.user.activeUserRef.toString(); }).forEach(async (change) => {
8294
+ payload.changes.forEach(async (change) => {
8292
8295
  var foundEntities = [];
8293
8296
  var localEntity = this.findEntityInCache(change);
8294
8297
  var globalEntity = this.findEntityInGlobalCache(change);