✨ Search as you type

🐛 Fix regression in register mutation
This commit is contained in:
nikolark committed 2021-12-04 23:48:36 +01:00
1 parent 2bcc993aaa
commit bc4414473c
2 files changed
+19 -6

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ def create_order(customer_id: ID, order_lines: list[OrderLineInput], is_external
if not is_external and user.profile.balance <= order_sum:
return InsufficientFunds(
message="Du har ikke nok penger på bok.", amount_lacking=abs(order_sum - profile.balance)
message="Du har ikke nok penger på bok.", amount_lacking=abs(order_sum - user.profile.balance)
)
# create