Skip to content

Commit

Permalink
fix(app): consider empty string a value in parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
kritish-dhaubanjar committed Oct 26, 2023
1 parent b019c27 commit 993767c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/utils/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export function generateDynamodbParameters({ table, indexName, parameters }) {
}

//
if (!name || !value || !type || (condition === "between" && !value2)) continue;
if (!name || !type || (condition === "between" && !value2)) continue;

if (["begins_with", "contains", "not contains"].includes(condition)) {
expression = `${condition}(#${name}, :${salt})`;
Expand Down

0 comments on commit 993767c

Please sign in to comment.