[add]: loan max amount

This commit was merged in pull request #38.
This commit is contained in:
VivianDee
2025-05-28 20:19:50 +01:00
parent 729cc26698
commit ec5db19e20
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -50,6 +50,8 @@ class Customer(db.Model):
raise ValueError("Customer already exists")
elif Account.query.filter_by(id=account_id).first():
raise ValueError("Account already exists")
elif cls.query.filter_by(msisdn=msisdn).first():
raise ValueError("msisdn already exists")
# Create the customer
customer = cls(