expose transferDate field
This commit is contained in:
@@ -134,7 +134,7 @@ const processedModel = mongoose.model(
|
||||
);
|
||||
|
||||
(async () => {
|
||||
console.log(new Date().toISOString() + "Started Archive script...");
|
||||
console.log(new Date().toISOString() + " Started Archive script...");
|
||||
|
||||
await mongoose.connect(process.env.DB_URI);
|
||||
|
||||
|
||||
@@ -73,6 +73,7 @@ export async function listProcessedPermits(
|
||||
openDate: 1,
|
||||
lastUpdateDate: 1,
|
||||
statusUpdated: 1,
|
||||
transferDate: 1,
|
||||
assignedTo: {
|
||||
$let: {
|
||||
vars: { assigned: { $arrayElemAt: ["$assignedRec", 0] } },
|
||||
|
||||
Reference in New Issue
Block a user