update permit schema, change token expiry to 7 days
This commit is contained in:
@@ -13,14 +13,12 @@ const permitSchema = new mongoose.Schema({
|
||||
unique: true,
|
||||
},
|
||||
permitNumber: String,
|
||||
county: {
|
||||
type: mongoose.Types.ObjectId,
|
||||
ref: "organization",
|
||||
},
|
||||
county: Object,
|
||||
client: {
|
||||
type: mongoose.Types.ObjectId,
|
||||
ref: "organization",
|
||||
},
|
||||
clientData: Object,
|
||||
permitDate: Date,
|
||||
stage: new mongoose.Schema(
|
||||
{
|
||||
|
||||
@@ -125,8 +125,9 @@ export async function listPermits(params: PageQueryParams, tenantId: string) {
|
||||
relatedRecords: 1,
|
||||
accelaStatus: 1,
|
||||
createdAt: 1,
|
||||
client: 1,
|
||||
county: 1,
|
||||
client: 1,
|
||||
clientData: 1,
|
||||
/* county: {
|
||||
$let: {
|
||||
vars: { county: { $arrayElemAt: ["$countyRec", 0] } },
|
||||
@@ -339,6 +340,7 @@ export async function searchPermit(params: PageQueryParams, tenantId: string) {
|
||||
createdAt: 1,
|
||||
county: 1,
|
||||
client: 1,
|
||||
clientData: 1,
|
||||
/* county: {
|
||||
$let: {
|
||||
vars: { county: { $arrayElemAt: ["$countyRec", 0] } },
|
||||
|
||||
Reference in New Issue
Block a user