filter bug fix

This commit is contained in:
2025-05-03 18:25:55 +05:30
parent dbc82f53a3
commit aeda2b60a1
5 changed files with 7 additions and 7 deletions

View File

@@ -33,7 +33,7 @@ export async function listViews(
const page = params.page || 1;
const pageSize = params.pageSize || 10;
const sortObj = getSortObject(params, viewFields);
const filterObj = getFilterObject(params);
const filterObj = getFilterObject(params) || [];
return await viewModel.find({
$and: [