From e852fc2c4a8e0838db28a13a21bd44d5b011cb44 Mon Sep 17 00:00:00 2001 From: Sander Vocke Date: Mon, 14 Sep 2020 16:24:28 +0200 Subject: [PATCH] Fix knex error. --- server/endpoints/QueryEndpointHandler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/endpoints/QueryEndpointHandler.ts b/server/endpoints/QueryEndpointHandler.ts index 0a6a850..3be1197 100644 --- a/server/endpoints/QueryEndpointHandler.ts +++ b/server/endpoints/QueryEndpointHandler.ts @@ -116,13 +116,13 @@ function addLeafWhere(knexQuery: any, queryElem: api.QueryElem, type: WhereType) } } else if (operator == api.QueryFilterOp.In) { if (type == WhereType.And) { - return knexQuery.andWhereIn(a, b); + return knexQuery.whereIn(a, b); } else if (type == WhereType.Or) { return knexQuery.orWhereIn(a, b); } } else if (operator == api.QueryFilterOp.NotIn) { if (type == WhereType.And) { - return knexQuery.andWhereNotIn(a, b); + return knexQuery.whereNotIn(a, b); } else if (type == WhereType.Or) { return knexQuery.orWhereNotIn(a, b); }