Skip to content

Commit

Permalink
FIX: find without sort key
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael O'Brien committed Feb 19, 2021
1 parent b2e97c0 commit c3d1200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export default class Expression {
}
if (action == 'begins_with' || action == 'begins') {
this.filters.push(`begins_with(#_${nindex}, :_${vindex})`)
values[`:_${vindex++}`] = value[action]
values[`:_${vindex++}`] = vars

} else if (action == 'between') {
this.filters.push(`between(#_${nindex}, :_${vindex}, :_${vindex+1})`)
Expand Down Expand Up @@ -258,7 +258,7 @@ export default class Expression {
}
if (action == 'begins_with' || action == 'begins') {
keys.push(`begins_with(#_${nindex}, :_${vindex})`)
values[`:_${vindex++}`] = vars[action]
values[`:_${vindex++}`] = vars

} else if (action == 'between') {
keys.push(`between(#_${nindex}, :_${vindex}, :_${vindex+1})`)
Expand Down

0 comments on commit c3d1200

Please sign in to comment.