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,