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/library-data.json +9152 -0
- package/package.json +1 -1
- package/src/entity.js +2 -2
package/package.json
CHANGED
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
|
|
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
|
-
|
|
2372
|
+
attribute.field,
|
|
2373
2373
|
primaryIndexAttributes[primaryIndexAttribute],
|
|
2374
2374
|
);
|
|
2375
2375
|
}
|