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