From 449d7ed4517b9dfd9fd06af230fd660b20be3b8d Mon Sep 17 00:00:00 2001 From: khushal Date: Thu, 5 Dec 2024 11:25:36 +0530 Subject: [PATCH] (20241205) Bug fix in 'firstRefreshTs' --- models/behaviour/mail/oauth_v2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/behaviour/mail/oauth_v2.py b/models/behaviour/mail/oauth_v2.py index 6131e53..e4a5f2f 100644 --- a/models/behaviour/mail/oauth_v2.py +++ b/models/behaviour/mail/oauth_v2.py @@ -229,8 +229,8 @@ class MailOAuthModel(BaseModel): "$cond": { "if": { "$or": [ - {"$eq": ["$fieldName", None]}, - {"$eq": [{"$type": "$fieldName"}, "missing"]} + {"$eq": ["$firstRefreshTs", None]}, + {"$eq": [{"$type": "$firstRefreshTs"}, "missing"]} ] }, "then": request_ts,