This commit is contained in:
2025-07-11 21:31:02 -03:00
parent 6d3a400b74
commit 8bcd310f6c
3 changed files with 5 additions and 6 deletions

View File

@@ -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_,
},

View File

@@ -26,7 +26,7 @@ Globals:
Architectures:
- x86_64
Layers:
- !Sub arn:aws:lambda:sa-east-1:336641857101:layer:layercake:79
- !Sub arn:aws:lambda:sa-east-1:336641857101:layer:layercake:80
Environment:
Variables:
TZ: America/Sao_Paulo
@@ -38,8 +38,6 @@ Globals:
ORDER_TABLE: !Ref OrderTable
ENROLLMENT_TABLE: !Ref EnrollmentTable
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_SECRET_KEY: "{{resolve:ssm:/betaeducacao/konviva/secret_key/str}}"
MEILISEARCH_HOST: https://meili.eduseg.com.br