update version
This commit is contained in:
@@ -25,5 +25,7 @@ def get_enrollment(enrollment_id: str):
|
||||
+ SortKey('0')
|
||||
+ SortKey('ORG', rename_key='org')
|
||||
+ SortKey('CANCEL_POLICY', rename_key='cancel_policy')
|
||||
+ SortKey('CREATED_BY', rename_key='created_by')
|
||||
+ SortKey('CANCELED_BY', rename_key='canceled_by')
|
||||
+ SortKey('LOCK', rename_key='lock')
|
||||
)
|
||||
|
||||
@@ -37,7 +37,7 @@ def cancel(
|
||||
with dyn.transact_writer() as transact:
|
||||
transact.update(
|
||||
key=KeyPair(enrollment_id, '0'),
|
||||
cond_expr='#status = pending',
|
||||
cond_expr='#status = :pending',
|
||||
update_expr='SET #status = :canceled, \
|
||||
canceled_at = :now, \
|
||||
updated_at = :now',
|
||||
|
||||
Reference in New Issue
Block a user