diff --git a/src/paginate.ts b/src/paginate.ts index 559ade2..26daa98 100644 --- a/src/paginate.ts +++ b/src/paginate.ts @@ -147,7 +147,7 @@ function parseFilter(query: PaginateQuery, config: PaginateConfig) { continue } if (isOperator(op1)) { - const args = op1 === FilterOperator.IN ? value.split(',') : value + const args = op1 === FilterOperator.IN || op1 === FilterOperator.BTW ? value.split(',') : value filter[column] = op1 === FilterOperator.BTW ? getOperatorFn(op1)(args[0], args[1]) : getOperatorFn(op1)(args) }