add new fields to list endpoints
This commit is contained in:
@@ -105,8 +105,18 @@ export async function listPermits(params: PageQueryParams, tenantId: string) {
|
||||
permitDate: 1,
|
||||
stage: 1,
|
||||
status: 1,
|
||||
link: 1,
|
||||
address: 1,
|
||||
recordType: 1,
|
||||
description: 1,
|
||||
applicationDetails: 1,
|
||||
applicationInfo: 1,
|
||||
applicationInfoTable: 1,
|
||||
conditions: 1,
|
||||
ownerDetails: 1,
|
||||
parcelInfo: 1,
|
||||
paymentData: 1,
|
||||
inspections: 1,
|
||||
county: {
|
||||
$let: {
|
||||
vars: { county: { $arrayElemAt: ["$countyRec", 0] } },
|
||||
@@ -297,8 +307,18 @@ export async function searchPermit(params: PageQueryParams, tenantId: string) {
|
||||
permitDate: 1,
|
||||
stage: 1,
|
||||
status: 1,
|
||||
link: 1,
|
||||
address: 1,
|
||||
recordType: 1,
|
||||
description: 1,
|
||||
applicationDetails: 1,
|
||||
applicationInfo: 1,
|
||||
applicationInfoTable: 1,
|
||||
conditions: 1,
|
||||
ownerDetails: 1,
|
||||
parcelInfo: 1,
|
||||
paymentData: 1,
|
||||
inspections: 1,
|
||||
county: {
|
||||
$let: {
|
||||
vars: { county: { $arrayElemAt: ["$countyRec", 0] } },
|
||||
|
||||
Reference in New Issue
Block a user