update
This commit is contained in:
@@ -195,10 +195,11 @@ def set_email_as_primary(
|
|||||||
)
|
)
|
||||||
transact.update(
|
transact.update(
|
||||||
key=KeyPair(id, '0'),
|
key=KeyPair(id, '0'),
|
||||||
update_expr='SET email = :email, email_verified = :email_verified, \
|
update_expr='DELETE emails :email_set SET email = :email, \
|
||||||
updated_at = :updated_at',
|
email_verified = :email_verified, updated_at = :updated_at',
|
||||||
expr_attr_values={
|
expr_attr_values={
|
||||||
':email': new_email,
|
':email': new_email,
|
||||||
|
':email_set': {new_email},
|
||||||
':email_verified': email_verified,
|
':email_verified': email_verified,
|
||||||
':updated_at': now_,
|
':updated_at': now_,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ Globals:
|
|||||||
Architectures:
|
Architectures:
|
||||||
- x86_64
|
- x86_64
|
||||||
Layers:
|
Layers:
|
||||||
- !Sub arn:aws:lambda:sa-east-1:336641857101:layer:layercake:79
|
- !Sub arn:aws:lambda:sa-east-1:336641857101:layer:layercake:80
|
||||||
Environment:
|
Environment:
|
||||||
Variables:
|
Variables:
|
||||||
TZ: America/Sao_Paulo
|
TZ: America/Sao_Paulo
|
||||||
@@ -38,8 +38,6 @@ Globals:
|
|||||||
ORDER_TABLE: !Ref OrderTable
|
ORDER_TABLE: !Ref OrderTable
|
||||||
ENROLLMENT_TABLE: !Ref EnrollmentTable
|
ENROLLMENT_TABLE: !Ref EnrollmentTable
|
||||||
COURSE_TABLE: !Ref CourseTable
|
COURSE_TABLE: !Ref CourseTable
|
||||||
ELASTIC_CLOUD_ID: "{{resolve:ssm:/betaeducacao/elastic/cloud_id/str}}"
|
|
||||||
ELASTIC_AUTH_PASS: "{{resolve:ssm:/betaeducacao/elastic/auth_pass/str}}"
|
|
||||||
KONVIVA_API_URL: https://lms.saladeaula.digital
|
KONVIVA_API_URL: https://lms.saladeaula.digital
|
||||||
KONVIVA_SECRET_KEY: "{{resolve:ssm:/betaeducacao/konviva/secret_key/str}}"
|
KONVIVA_SECRET_KEY: "{{resolve:ssm:/betaeducacao/konviva/secret_key/str}}"
|
||||||
MEILISEARCH_HOST: https://meili.eduseg.com.br
|
MEILISEARCH_HOST: https://meili.eduseg.com.br
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ def table_from_arn(arn: str) -> str:
|
|||||||
return arn_.resource.split('/')[0]
|
return arn_.resource.split('/')[0]
|
||||||
|
|
||||||
|
|
||||||
# Post-migration: remove the following line
|
# Post-migration: remove the following lines
|
||||||
def sanitize(obj):
|
def sanitize(obj):
|
||||||
if isinstance(obj, dict):
|
if isinstance(obj, dict):
|
||||||
return {k.replace(':', '__'): sanitize(v) for k, v in obj.items()}
|
return {k.replace(':', '__'): sanitize(v) for k, v in obj.items()}
|
||||||
|
|||||||
Reference in New Issue
Block a user