added array filter option
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { AuthenticatedUser } from '../auth';
|
||||
import { getFilterObject, getSortObject, PageQueryParams } from '../pagination';
|
||||
import { generateId } from '../utils/id';
|
||||
import { AuthenticatedUser } from "../auth";
|
||||
import { getFilterObject, getSortObject, PageQueryParams } from "../pagination";
|
||||
import { generateId } from "../utils/id";
|
||||
import {
|
||||
CreateViewInput,
|
||||
UpdateViewInput,
|
||||
viewFields,
|
||||
viewModel,
|
||||
} from './view.schema';
|
||||
} from "./view.schema";
|
||||
|
||||
export async function createView(
|
||||
input: CreateViewInput,
|
||||
@@ -39,7 +39,7 @@ export async function listViews(
|
||||
$and: [
|
||||
{ tenantId: user.tenantId },
|
||||
{ createdBy: user.userId },
|
||||
{ ...filterObj },
|
||||
...filterObj,
|
||||
],
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user