feat: let bot R/W RTS, add fileValidationStatus to RTS

This commit is contained in:
2025-09-17 17:25:43 +05:30
parent b2268e52df
commit 3e15e55ea2
3 changed files with 5 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ export async function createRts(
client: user.role == "client" ? defaultClient : input.client,
createdAt: new Date(),
createdBy: user.userId ?? null,
fileValidationStatus: "pending",
});
await createAlert(
@@ -162,6 +163,7 @@ export async function listRts(
priority: 1,
dueDate: 1,
taggedUsers: 1,
fileValidationStatus: 1,
county: {
$let: {
vars: { county: { $arrayElemAt: ["$countyRec", 0] } },