(20241230) Mail retrieval bug fixed.

This commit is contained in:
2024-12-30 10:05:08 +05:30
parent a0ea7c45d6
commit 4af9980249
+1 -1
View File
@@ -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: # We check if the token that was used to fetch the mail is owned by this user:
if not await token_check.is_authorized( 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"]), user_info = CoreUserInfoModel(**kwargs["session_info"]),
token_ids = [message.tokenId] token_ids = [message.tokenId]
): return ResponseModel( ): return ResponseModel(