From 2c34c16c34afa34157c7cc6401f6c99901ac504d Mon Sep 17 00:00:00 2001 From: VivianDee <115420678+VivianDee@users.noreply.github.com> Date: Thu, 10 Apr 2025 12:27:57 +0100 Subject: [PATCH] [fix]: Missing account id --- app/api/services/repayment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/api/services/repayment.py b/app/api/services/repayment.py index 737e22f..e1500bf 100644 --- a/app/api/services/repayment.py +++ b/app/api/services/repayment.py @@ -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)):