(20241210) EMail filter added for listing emails.

This commit is contained in:
2024-12-10 10:48:46 +05:30
parent a3589c4eb7
commit e7ca685e20
2 changed files with 63 additions and 4 deletions
+4 -1
View File
@@ -165,7 +165,10 @@ class MailRetrieveModel(BaseModel):
# Get the data from the database:
mails_list = await mongo_conn.find_many(
collection = self.MAIL_COLLECTION,
filter = {"tokenId": {"$in": token_id}},
filter = {
"tokenId": {"$in": token_id},
"serviceType": "email"
},
projection = {
"_id": True,
"serviceType": True,