Commit 649508d2 authored by =sankoju Ravi's avatar =sankoju Ravi

Get Activities

parent c4f612bd
......@@ -282,7 +282,7 @@ app.post("/getActivities", async(req, res) => {
aggreGate.push({ $sort: { "activities.recorded_date": -1 } });
if(types && types?.length)
aggreGate.push({$match:{"activities.type": {"$in":types} } });
console.log(JSON.stringify(aggreGate));
//console.log(JSON.stringify(aggreGate));
let facet = {
data: [{ $skip: skip }, { $limit: limit }],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment