electrodb 3.4.6 → 3.5.0
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/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/clauses.js +2 -1
- package/src/entity.js +1 -1
package/index.d.ts
CHANGED
package/package.json
CHANGED
package/src/clauses.js
CHANGED
|
@@ -15,7 +15,6 @@ const {
|
|
|
15
15
|
AttributeOperationProxy,
|
|
16
16
|
UpdateOperations,
|
|
17
17
|
FilterOperationNames,
|
|
18
|
-
UpdateOperationNames,
|
|
19
18
|
} = require("./operations");
|
|
20
19
|
const { UpdateExpression } = require("./update");
|
|
21
20
|
const { FilterExpression } = require("./where");
|
|
@@ -472,6 +471,8 @@ let clauses = {
|
|
|
472
471
|
const value = updatedKeys[key];
|
|
473
472
|
if (indexKey[key] === undefined) {
|
|
474
473
|
setFields[key] = value;
|
|
474
|
+
} else {
|
|
475
|
+
delete setFields[key];
|
|
475
476
|
}
|
|
476
477
|
}
|
|
477
478
|
|
package/src/entity.js
CHANGED
|
@@ -1631,7 +1631,7 @@ class Entity {
|
|
|
1631
1631
|
consistent: undefined,
|
|
1632
1632
|
compare: ComparisonTypes.keys,
|
|
1633
1633
|
complete: false,
|
|
1634
|
-
ignoreOwnership:
|
|
1634
|
+
ignoreOwnership: !!this.config.ignoreOwnership,
|
|
1635
1635
|
_providedIgnoreOwnership: false,
|
|
1636
1636
|
_isPagination: false,
|
|
1637
1637
|
_isCollectionQuery: false,
|