(feat:conv) save the conv with key

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

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,