fix relationship
This commit is contained in:
@@ -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,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user