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