Skip to content

Commit 3e8ea02

Browse files
committed
bug fix key syntax
1 parent 31f9183 commit 3e8ea02

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

dynadash.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -471,12 +471,12 @@ export async function shallowUpdateTableRow<R>(
471471
cond = `(${key} IN (${valStr}))`;
472472
}
473473
if (exp.op === 'BETWEEN') {
474-
cond = `(${key} between :${key}-A and :${key}-B)`;
475-
expressionAttributeValues[`:${key}-A`] = exp.value[0];
476-
expressionAttributeValues[`:${key}-B`] = exp.value[1];
474+
cond = `(${key} between :${key}Xaa and :${key}Xbb)`;
475+
expressionAttributeValues[`:${key}Xaa`] = exp.value[0];
476+
expressionAttributeValues[`:${key}Xbb`] = exp.value[1];
477477
} else {
478-
cond = `${key} ${exp.op} :${key}-v`;
479-
expressionAttributeValues[`:${key}-v`] = exp.value;
478+
cond = `${key} ${exp.op} :${key}Xvv`;
479+
expressionAttributeValues[`:${key}Xvv`] = exp.value;
480480
}
481481
if (exp.logicOp) cond += ` ${exp.logicOp}`;
482482
conditionExpression.push(cond);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dynadash",
3-
"version": "1.4.4",
3+
"version": "1.4.5",
44
"description": "DynamoDb helpers",
55
"main": "dist/dynadash.js",
66
"typings": "dist/types/dynadash.d.ts",

0 commit comments

Comments
 (0)