From c3d1200357813d159f969af59d348adf2f6a9728 Mon Sep 17 00:00:00 2001 From: Michael O'Brien Date: Fri, 19 Feb 2021 12:08:33 +1100 Subject: [PATCH] FIX: find without sort key --- src/Expression.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Expression.js b/src/Expression.js index e7c8d6b..acffd62 100644 --- a/src/Expression.js +++ b/src/Expression.js @@ -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})`) @@ -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})`)