update version
This commit is contained in:
@@ -195,7 +195,7 @@ def primary(
|
||||
with dyn.transact_writer() as transact:
|
||||
# Set the old email as non-primary
|
||||
transact.update(
|
||||
# Post-migration (users): rename `emails` to `EMAIL`
|
||||
# Post-migration (users): rename `emails#` to `EMAIL#`
|
||||
key=KeyPair(user_id, f'emails#{old_email}'),
|
||||
update_expr=expr,
|
||||
expr_attr_values={
|
||||
@@ -206,7 +206,7 @@ def primary(
|
||||
)
|
||||
# Set the new email as primary
|
||||
transact.update(
|
||||
# Post-migration (users): rename `emails` to `EMAIL`
|
||||
# Post-migration (users): rename `emails#` to `EMAIL#`
|
||||
key=KeyPair(user_id, f'emails#{new_email}'),
|
||||
update_expr=expr,
|
||||
expr_attr_values={
|
||||
@@ -243,7 +243,7 @@ def remove(
|
||||
key=KeyPair('email', email),
|
||||
)
|
||||
transact.delete(
|
||||
# Post-migration (users): rename `emails` to `EMAIL`
|
||||
# Post-migration (users): rename `emails#` to `EMAIL#`
|
||||
key=KeyPair(user_id, f'emails#{email}'),
|
||||
# Delete any email except the primary email
|
||||
cond_expr='email_primary <> :email_primary',
|
||||
|
||||
Reference in New Issue
Block a user