From 4af99802497ab32f385d6a99678411334b0b1990 Mon Sep 17 00:00:00 2001 From: khushal Date: Mon, 30 Dec 2024 10:05:08 +0530 Subject: [PATCH] (20241230) Mail retrieval bug fixed. --- api/blueprints/mail/retrieve/get.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/blueprints/mail/retrieve/get.py b/api/blueprints/mail/retrieve/get.py index 93966f5..ab8bc5b 100644 --- a/api/blueprints/mail/retrieve/get.py +++ b/api/blueprints/mail/retrieve/get.py @@ -189,7 +189,7 @@ async def get_one_mail( # We check if the token that was used to fetch the mail is owned by this user: if not await token_check.is_authorized( - mongo_conn = current_app.data_mongo, + mongo_data_conn = current_app.data_mongo, user_info = CoreUserInfoModel(**kwargs["session_info"]), token_ids = [message.tokenId] ): return ResponseModel(