filter bug fix
This commit is contained in:
@@ -59,7 +59,7 @@ export async function listTasks(params: PageQueryParams, tenantId: string) {
|
||||
const page = params.page || 1;
|
||||
const pageSize = params.pageSize || 10;
|
||||
const sortObj = getSortObject(params, taskFields);
|
||||
const filterObj = getFilterObject(params);
|
||||
const filterObj = getFilterObject(params) || [];
|
||||
|
||||
const taskList = await taskModel.aggregate([
|
||||
{
|
||||
@@ -145,7 +145,7 @@ export async function searchTasks(params: PageQueryParams, tenantId: string) {
|
||||
const page = params.page || 1;
|
||||
const pageSize = params.pageSize || 10;
|
||||
const sortObj = getSortObject(params, taskFields);
|
||||
const filterObj = getFilterObject(params);
|
||||
const filterObj = getFilterObject(params) || [];
|
||||
|
||||
const regex = new RegExp(params.searchToken, "i");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user