electrodb 3.4.6 → 3.4.7
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 +1 -1
- package/src/clauses.js +2 -1
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
|
|