@trudb/tru-common-lib 0.2.474 → 0.2.476

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,10 +8221,13 @@ 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
- else {
8230
+ else if (change.modifiedRef.toString() !== this.user.activeUserRef.toString()) {
8228
8231
  let value = this.checkIfDateTime(change.properties[key], entity[key], entityType.typeName);
8229
8232
  let modifiedBy = change.modifiedBy;
8230
8233
  let hid = change.properties[key + 'HID'];
@@ -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);