add fallback to id
This commit is contained in:
@@ -121,6 +121,8 @@ def _create_user(user: User, org: Org) -> bool:
|
||||
# 'org_id': {org.id},
|
||||
# 'created_at': now_,
|
||||
'createDate': now_,
|
||||
# Makes the email searchable
|
||||
'emails': {user.email},
|
||||
},
|
||||
)
|
||||
transact.put(
|
||||
@@ -137,8 +139,8 @@ def _create_user(user: User, org: Org) -> bool:
|
||||
'sk': f'emails#{user.email}',
|
||||
'email_verified': email_verified,
|
||||
'email_primary': True,
|
||||
'mx_record_exists': email_verified,
|
||||
'created_at': now_,
|
||||
**({'mx_record_exists': True} if email_verified else {}),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user