triangle-utils 1.4.35 → 1.4.36

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.
@@ -169,7 +169,7 @@ export class UtilsDynamoDB {
169
169
  ExpressionAttributeValues: Object.fromEntries(Object.entries(primary_key)
170
170
  .map(([key, value]) => [":" + key, convert_input(value)])
171
171
  .filter(([key, value]) => value !== undefined)),
172
- KeyConditionExpression: Object.keys(primary_key).map(key => ["#" + key, ":" + key]).join(", "),
172
+ KeyConditionExpression: Object.keys(primary_key).map(key => "#" + key + " = :" + key).join(" AND "),
173
173
  Limit: 1,
174
174
  ScanIndexForward: false
175
175
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-utils",
3
- "version": "1.4.35",
3
+ "version": "1.4.36",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -201,7 +201,7 @@ export class UtilsDynamoDB {
201
201
  .map(([key, value]) => [":" + key, convert_input(value)])
202
202
  .filter(([key, value]) => value !== undefined)
203
203
  ),
204
- KeyConditionExpression: Object.keys(primary_key).map(key => ["#" + key, ":" + key]).join(", "),
204
+ KeyConditionExpression: Object.keys(primary_key).map(key => "#" + key + " = :" + key).join(" AND "),
205
205
  Limit : 1,
206
206
  ScanIndexForward : false
207
207
  }