renamem orders

This commit is contained in:
2025-10-13 14:31:29 -03:00
parent 8c750e00d0
commit 466ff824dd
60 changed files with 165 additions and 59 deletions

View File

@@ -69,7 +69,7 @@ def enroll(
now_ = now()
user = enrollment.user
course = enrollment.course
tenant_id = tenant['id']
org_id = tenant['id']
lock_hash = md5_hash('%s%s' % (user.id, course.id))
with persistence_layer.transact_writer() as transact:
@@ -80,15 +80,15 @@ def enroll(
item={
'sk': '0',
'created_at': now_,
'tenant_id': tenant_id,
'org_id': org_id,
**enrollment.model_dump(),
},
)
transact.put(
item={
'id': enrollment.id,
'sk': 'tenant',
'org_id': tenant_id,
'sk': 'ORG',
'org_id': org_id,
'name': tenant['name'],
'created_at': now_,
},