(feat:conv) save the conv with key

This commit is contained in:
ManishMadan2882 committed 2025-02-24 16:28:24 +05:30
1 parent 104c6ef457
commit 3e02d5a56f
2 files changed
+45 -33

No files matched your search

+3
View File
@@ -1287,6 +1287,9 @@ class GetMessageAnalytics(Resource):
}
if api_key:
match_stage["$match"]["api_key"] = api_key
else:
match_stage["$match"]["api_key"] = {"$exists": False}
message_data = conversations_collection.aggregate(
[
match_stage,