This commit is contained in:
2025-07-03 15:36:30 -03:00
parent ce1c1b367e
commit 208c43f398
18 changed files with 261 additions and 78 deletions

View File

@@ -24,8 +24,8 @@ enrollment_layer = DynamoDBPersistenceLayer(ENROLLMENT_TABLE, dynamodb_client)
@event_source(data_class=EventBridgeEvent)
@logger.inject_lambda_context
def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
"""Remove slots if the Tenant has a `metadata#billing_policy` and
the order is positive."""
"""Remove slots if the tenant has a `metadata#billing_policy` and
the total is greater than zero."""
new_image = event.detail['new_image']
order_id = new_image['id']
data = order_layer.collection.get_items(