@izara_project/izara-core-library-dynamodb 1.0.5 → 1.0.6
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/DynamodbSharedLib.js +2 -2
package/package.json
CHANGED
package/src/DynamodbSharedLib.js
CHANGED
|
@@ -768,7 +768,7 @@ module.exports.putItem = async (
|
|
|
768
768
|
|
|
769
769
|
// for (let idx = 0; idx < attributes.length; idx++) { // for loop more performance than for of
|
|
770
770
|
for (let idx = 0, len = attributes.length; idx < len; idx++) {
|
|
771
|
-
if (attributes[idx].action !== 'REMOVE' && attributes[idx].value === undefined) {
|
|
771
|
+
if (attributes[idx].action.toUpperCase() !== 'REMOVE' && attributes[idx].value === undefined) {
|
|
772
772
|
continue;
|
|
773
773
|
}
|
|
774
774
|
|
|
@@ -925,7 +925,7 @@ module.exports.updateItem = async (_izContext, tableName, keyValues, attributes,
|
|
|
925
925
|
|
|
926
926
|
// ====== for loop to check each element
|
|
927
927
|
for (let idx = 0, len = attributes.length; idx < len; idx++) {
|
|
928
|
-
if (attributes[idx].action !== 'REMOVE' && (attributes[idx].value === undefined)) continue;
|
|
928
|
+
if (attributes[idx].action.toUpperCase() !== 'REMOVE' && (attributes[idx].value === undefined)) continue;
|
|
929
929
|
|
|
930
930
|
// change action string to upperCase
|
|
931
931
|
attributes[idx].action = attributes[idx].action.toUpperCase()
|