update
This commit is contained in:
@@ -195,10 +195,11 @@ def set_email_as_primary(
|
||||
)
|
||||
transact.update(
|
||||
key=KeyPair(id, '0'),
|
||||
update_expr='SET email = :email, email_verified = :email_verified, \
|
||||
updated_at = :updated_at',
|
||||
update_expr='DELETE emails :email_set SET email = :email, \
|
||||
email_verified = :email_verified, updated_at = :updated_at',
|
||||
expr_attr_values={
|
||||
':email': new_email,
|
||||
':email_set': {new_email},
|
||||
':email_verified': email_verified,
|
||||
':updated_at': now_,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user