electrodb 2.10.4 → 2.10.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrodb",
3
- "version": "2.10.4",
3
+ "version": "2.10.5",
4
4
  "description": "A library to more easily create and interact with multiple entities and heretical relationships in dynamodb",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/entity.js CHANGED
@@ -2317,7 +2317,7 @@ class Entity {
2317
2317
  // TODO: This will only work with root attributes and should be refactored for nested attributes.
2318
2318
  update.set(attr.field, preparedUpdateValues[path]);
2319
2319
  } else {
2320
- // this could be fields added by electro that don't apeear in the schema
2320
+ // this could be fields added by electro that don't appear in the schema
2321
2321
  update.set(path, preparedUpdateValues[path]);
2322
2322
  }
2323
2323
  }
@@ -2369,7 +2369,7 @@ class Entity {
2369
2369
  modifiedAttributeNames[primaryIndexAttribute] === undefined;
2370
2370
  if (isNotTablePK && isNotTableSK && wasNotAlreadyModified) {
2371
2371
  update.set(
2372
- primaryIndexAttribute,
2372
+ attribute.field,
2373
2373
  primaryIndexAttributes[primaryIndexAttribute],
2374
2374
  );
2375
2375
  }