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',
|
||||
|
||||
@@ -18,7 +18,7 @@ def get_orgs(
|
||||
limit: Annotated[int, Query(ge=25)] = 25,
|
||||
):
|
||||
return dyn.collection.query(
|
||||
# Post-migration (users): rename `orgs` to `ORG`
|
||||
# Post-migration (users): rename `orgs#` to `ORG#`
|
||||
key=KeyPair(user_id, 'orgs#'),
|
||||
start_key=start_key,
|
||||
limit=limit,
|
||||
|
||||
Reference in New Issue
Block a user