add retries to order
This commit is contained in:
@@ -62,5 +62,13 @@ def payment_retries(
|
||||
},
|
||||
cond_expr='attribute_not_exists(sk)',
|
||||
)
|
||||
transact.update(
|
||||
key=KeyPair(order_id, 'TRANSACTION#STATS'),
|
||||
update_expr='SET updated_at = :now REMOVE last_attempt_succeeded',
|
||||
expr_attr_values={
|
||||
':now': now(),
|
||||
},
|
||||
cond_expr='attribute_exists(sk)',
|
||||
)
|
||||
|
||||
return JSONResponse(status_code=HTTPStatus.CREATED)
|
||||
|
||||
Reference in New Issue
Block a user