permit schema update

This commit is contained in:
2025-03-01 11:02:45 +05:30
parent d2f3ebdb46
commit 782870e1fe
3 changed files with 25 additions and 2 deletions

View File

@@ -117,6 +117,14 @@ export async function listPermits(params: PageQueryParams, tenantId: string) {
parcelInfo: 1,
paymentData: 1,
inspections: 1,
newProcessingStatus: 1,
newPayment: 1,
newConditions: 1,
professionals: 1,
recordid: 1,
relatedRecords: 1,
accelaStatus: 1,
createdAt: 1,
county: {
$let: {
vars: { county: { $arrayElemAt: ["$countyRec", 0] } },
@@ -319,6 +327,14 @@ export async function searchPermit(params: PageQueryParams, tenantId: string) {
parcelInfo: 1,
paymentData: 1,
inspections: 1,
newProcessingStatus: 1,
newPayment: 1,
newConditions: 1,
professionals: 1,
recordid: 1,
relatedRecords: 1,
accelaStatus: 1,
createdAt: 1,
county: {
$let: {
vars: { county: { $arrayElemAt: ["$countyRec", 0] } },