feat: add dueDate field to rts
This commit is contained in:
@@ -43,6 +43,7 @@ const rtsSchema = new mongoose.Schema({
|
||||
),
|
||||
status: String,
|
||||
labels: [String],
|
||||
dueDate: Date,
|
||||
priority: String,
|
||||
createdAt: Date,
|
||||
createdBy: {
|
||||
@@ -69,6 +70,7 @@ const rtsCreateInput = z.object({
|
||||
permitType: z.string().optional(),
|
||||
labels: z.array(z.string()).optional(),
|
||||
priority: z.string().optional(),
|
||||
dueDate: z.date().optional(),
|
||||
stage: z
|
||||
.object({
|
||||
pipeline: z.array(
|
||||
@@ -92,6 +94,7 @@ const rtsUpdateInput = z.object({
|
||||
permitType: z.string().optional(),
|
||||
labels: z.array(z.string()).optional(),
|
||||
priority: z.string().optional(),
|
||||
dueDate: z.date().optional(),
|
||||
stage: z
|
||||
.object({
|
||||
pipeline: z.array(
|
||||
|
||||
@@ -160,6 +160,7 @@ export async function listRts(
|
||||
status: 1,
|
||||
labels: 1,
|
||||
priority: 1,
|
||||
dueDate: 1,
|
||||
taggedUsers: 1,
|
||||
county: {
|
||||
$let: {
|
||||
|
||||
Reference in New Issue
Block a user