wip subscription org
This commit is contained in:
@@ -34,15 +34,17 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
|
||||
limit=100,
|
||||
)
|
||||
|
||||
logger.info('Slots found', total_items=len(result['items']), slots=result['items'])
|
||||
logger.info(
|
||||
'Slots found',
|
||||
total_items=len(result['items']),
|
||||
slots=result['items'],
|
||||
)
|
||||
|
||||
with enrollment_layer.batch_writer() as batch:
|
||||
for pair in result['items']:
|
||||
batch.delete_item(
|
||||
Key={
|
||||
# Post-migration: Uncomment the following line
|
||||
# 'id': {'S': f'SLOT#ORG#{org_id}'},
|
||||
'id': {'S': f'vacancies#{org_id}'},
|
||||
'id': {'S': pair['id']},
|
||||
'sk': {'S': pair['sk']},
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user