@cryptotaxi247 / CoPilot / commits / e288f2f6

Exclude 'is_provisioned' field when updating customer data (#757)

taylor_socfortress committed Mar 9, 2026 at 10:03 UTC e288f2f6f56d1f774396e308a86783cad25d82b7
1 file changed +1 -1
backend/app/customers/routes/customers.py
+1 -1
@@ -348,7 +348,7 @@ async def update_customer(
348 )
349
350 # Update model instance with input data
351 - for key, value in customer.dict().items():
351 + for key, value in customer.dict(exclude={"is_provisioned"}).items():
352 setattr(existing_customer, key, value)
353
354 await session.commit() # Commit changes asynchronously