fix relationship

This commit is contained in:
2025-10-03 12:37:00 -03:00
parent 21057fed3e
commit 48ed8d8345

View File

@@ -83,8 +83,7 @@ def enroll(
transact.put( transact.put(
item={ item={
'id': enrollment.id, 'id': enrollment.id,
'sk': entity_sk, 'sk': f'{entity_sk}#PARENT',
'kind': 'PARENT',
'created_at': now_, 'created_at': now_,
f'{keyprefix}_id': perent_id, f'{keyprefix}_id': perent_id,
}, },
@@ -95,8 +94,7 @@ def enroll(
transact.put( transact.put(
item={ item={
'id': perent_id, 'id': perent_id,
'sk': entity_sk, 'sk': f'{entity_sk}#CHILD',
'kind': 'CHILD',
'created_at': now_, 'created_at': now_,
f'{keyprefix}_id': enrollment.id, f'{keyprefix}_id': enrollment.id,
}, },