add default org
This commit is contained in:
@@ -101,6 +101,7 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
|
||||
key=KeyPair(order_id, 'TRANSACTION#STATS'),
|
||||
update_expr='SET #count = if_not_exists(#count, :zero) + :one, \
|
||||
last_attempt_succeeded = :succeeded, \
|
||||
created_at = if_not_exists(created_at, :now), \
|
||||
updated_at = :now',
|
||||
expr_attr_names={
|
||||
'#count': 'payment_attempts',
|
||||
@@ -109,7 +110,7 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
|
||||
':succeeded': charge['success'],
|
||||
':zero': 0,
|
||||
':one': 1,
|
||||
':now': now(),
|
||||
':now': now_,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user