electrodb
Advanced tools
Comparing version 0.9.45 to 0.9.46
{ | ||
"name": "electrodb", | ||
"version": "0.9.45", | ||
"version": "0.9.46", | ||
"description": "A library to more easily create and interact with multiple entities and heretical relationships in dynamodb", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1049,3 +1049,3 @@ "use strict"; | ||
} | ||
let composedKeys = this._makePutKeysFromAttributes(completeFacets.indexes, { ...keyAttributes, ...set }); | ||
let composedKeys = this._makePutKeysFromAttributes(completeFacets.indexes, { ...keyAttributes, ...setAttributes }); | ||
let updatedKeys = {}; | ||
@@ -1086,4 +1086,3 @@ let indexKey = {}; | ||
} | ||
let composedKeys = this._makeKeysFromAttributes(completeFacets.impactedIndexTypes,{ ...keyAttributes, ...set }); | ||
let composedKeys = this._makeKeysFromAttributes(completeFacets.impactedIndexTypes,{ ...set, ...keyAttributes }); | ||
let updatedKeys = {}; | ||
@@ -1361,13 +1360,8 @@ let indexKey = {}; | ||
} | ||
let value = this.model.schema.attributes[facet].set(supplied[name]); | ||
// Undefined facet value means we cant build any more of the key | ||
if (value == undefined) { | ||
if (supplied[name] === undefined) { | ||
break; | ||
} | ||
key = `${key}${value}`; | ||
// This didnt used to leverage the setter before adding the value | ||
// key = `${key}${supplied[name]}`; | ||
key = `${key}${supplied[name]}`; | ||
} | ||
@@ -1374,0 +1368,0 @@ return key.toLowerCase(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
223221
3640