[fix]: Missing account id

This commit is contained in:
VivianDee
2025-04-10 12:27:57 +01:00
parent 1b973322c9
commit 2c34c16c34
+1
View File
@@ -24,6 +24,7 @@ class RepaymentService(BaseService):
customer_id = validated_data.get('customerId')
customer = RepaymentService.get_or_create_customer(validated_data)
account = customer.accounts[0]
validated_data['accountId'] = account.id
if (RepaymentService.validate_account_ownership(account_id = account.id, customer_id = customer_id)):