add fallback to id
This commit is contained in:
@@ -20,7 +20,8 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
|
||||
|
||||
user_layer.update_item(
|
||||
key=KeyPair(new_image['sk'], '0'),
|
||||
update_expr='ADD tenant_id :tenant_id SET updated_at = :updated_at',
|
||||
update_expr='ADD tenant_id :tenant_id \
|
||||
SET updated_at = :updated_at',
|
||||
expr_attr_values={
|
||||
':tenant_id': {tenant},
|
||||
':updated_at': now_,
|
||||
|
||||
@@ -242,6 +242,7 @@ Resources:
|
||||
detail:
|
||||
new_image:
|
||||
sk:
|
||||
# Post-migration (users): rename `emails` to `EMAIL`
|
||||
- prefix: emails#
|
||||
mx_record_exists:
|
||||
- exists: false
|
||||
|
||||
Reference in New Issue
Block a user