fix menu
This commit is contained in:
@@ -132,9 +132,10 @@ def _create_user(rawuser: dict, context: dict) -> None:
|
||||
'sk': '0',
|
||||
'email_verified': False,
|
||||
'tenant_id': {org.id},
|
||||
# Post-migration: uncomment the folloing line
|
||||
# Post-migration (users): uncomment the folloing line
|
||||
# 'org_id': {org.id},
|
||||
'created_at': now_,
|
||||
# 'created_at': now_,
|
||||
'createDate': now_,
|
||||
},
|
||||
)
|
||||
transact.put(
|
||||
@@ -147,7 +148,7 @@ def _create_user(rawuser: dict, context: dict) -> None:
|
||||
transact.put(
|
||||
item={
|
||||
'id': user_id,
|
||||
# Post-migration: rename `emails` to `EMAIL`
|
||||
# Post-migration (users): rename `emails` to `EMAIL`
|
||||
'sk': f'emails#{user.email}',
|
||||
'email_verified': False,
|
||||
'email_primary': True,
|
||||
@@ -169,9 +170,10 @@ def _create_user(rawuser: dict, context: dict) -> None:
|
||||
)
|
||||
transact.put(
|
||||
item={
|
||||
# Post-migration: rename `cpf` to `CPF`
|
||||
# Post-migration (users): rename `cpf` to `CPF`
|
||||
'id': 'cpf',
|
||||
'sk': user.cpf,
|
||||
'user_id': user_id,
|
||||
'created_at': now_,
|
||||
},
|
||||
cond_expr='attribute_not_exists(sk)',
|
||||
@@ -179,9 +181,10 @@ def _create_user(rawuser: dict, context: dict) -> None:
|
||||
)
|
||||
transact.put(
|
||||
item={
|
||||
# Post-migration: rename `email` to `EMAIL`
|
||||
# Post-migration (users): rename `email` to `EMAIL`
|
||||
'id': 'email',
|
||||
'sk': user.email,
|
||||
'user_id': user_id,
|
||||
'created_at': now_,
|
||||
},
|
||||
cond_expr='attribute_not_exists(sk)',
|
||||
@@ -191,7 +194,7 @@ def _create_user(rawuser: dict, context: dict) -> None:
|
||||
item={
|
||||
'id': user_id,
|
||||
'sk': f'orgs#{org.id}',
|
||||
# Post-migration: uncomment the following line
|
||||
# Post-migration (users): uncomment the following line
|
||||
# pk=f'ORG#{org.id}',
|
||||
'name': org.name,
|
||||
'cnpj': org.cnpj,
|
||||
@@ -201,7 +204,7 @@ def _create_user(rawuser: dict, context: dict) -> None:
|
||||
transact.put(
|
||||
item={
|
||||
'id': f'orgmembers#{org.id}',
|
||||
# Post-migration: uncomment the following line
|
||||
# Post-migration (users): uncomment the following line
|
||||
# pk=f'MEMBER#ORG#{org_id}',
|
||||
'sk': user_id,
|
||||
'created_at': now_,
|
||||
|
||||
Reference in New Issue
Block a user