Fix knex error.

pull/16/head
Sander Vocke 5 years ago
parent 112047f860
commit e852fc2c4a
  1. 4
      server/endpoints/QueryEndpointHandler.ts

@ -116,13 +116,13 @@ function addLeafWhere(knexQuery: any, queryElem: api.QueryElem, type: WhereType)
} }
} else if (operator == api.QueryFilterOp.In) { } else if (operator == api.QueryFilterOp.In) {
if (type == WhereType.And) { if (type == WhereType.And) {
return knexQuery.andWhereIn(a, b); return knexQuery.whereIn(a, b);
} else if (type == WhereType.Or) { } else if (type == WhereType.Or) {
return knexQuery.orWhereIn(a, b); return knexQuery.orWhereIn(a, b);
} }
} else if (operator == api.QueryFilterOp.NotIn) { } else if (operator == api.QueryFilterOp.NotIn) {
if (type == WhereType.And) { if (type == WhereType.And) {
return knexQuery.andWhereNotIn(a, b); return knexQuery.whereNotIn(a, b);
} else if (type == WhereType.Or) { } else if (type == WhereType.Or) {
return knexQuery.orWhereNotIn(a, b); return knexQuery.orWhereNotIn(a, b);
} }

Loading…
Cancel
Save