Commit 51c833a7 authored by harshavardhan.c's avatar harshavardhan.c

aggregation bugfix while fetching the project_info.

parent 5bad1819
...@@ -13,5 +13,5 @@ class ProjectAggregate: ...@@ -13,5 +13,5 @@ class ProjectAggregate:
}, },
}}, {'$replaceRoot': {'newRoot': {'$arrayToObject': '$data'}}}] }}, {'$replaceRoot': {'newRoot': {'$arrayToObject': '$data'}}}]
if project_id: if project_id:
query_json[0].update({'$match': {'customer_project_id': project_id}}) query_json.insert(0, {'$match': {'customer_project_id': project_id}})
return query_json return query_json
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