add labels and priority fields to task collection
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import { userInfo } from "os";
|
||||
import { AuthenticatedUser } from "../auth";
|
||||
import { orgModel } from "../organization/organization.schema";
|
||||
import { getFilterObject, getSortObject, PageQueryParams } from "../pagination";
|
||||
import { generateId } from "../utils/id";
|
||||
import { taskPipeline } from "../utils/pipeline";
|
||||
@@ -11,7 +9,6 @@ import {
|
||||
UpdateTaskInput,
|
||||
UploadTaskInput,
|
||||
} from "./task.schema";
|
||||
import { userModel } from "../user/user.schema";
|
||||
|
||||
export async function createTask(
|
||||
input: CreateTaskInput,
|
||||
@@ -90,6 +87,8 @@ export async function listTasks(params: PageQueryParams, tenantId: string) {
|
||||
pid: 1,
|
||||
title: 1,
|
||||
dueDate: 1,
|
||||
labels: 1,
|
||||
priority: 1,
|
||||
documents: 1,
|
||||
stage: 1,
|
||||
createdAt: 1,
|
||||
@@ -183,6 +182,8 @@ export async function searchTasks(params: PageQueryParams, tenantId: string) {
|
||||
pid: 1,
|
||||
title: 1,
|
||||
dueDate: 1,
|
||||
labels: 1,
|
||||
priority: 1,
|
||||
documents: 1,
|
||||
stage: 1,
|
||||
createdAt: 1,
|
||||
|
||||
Reference in New Issue
Block a user