Fix test failures and workload/websocket behavior
This commit is contained in:
@@ -283,7 +283,7 @@ async def update_user_capacity(
|
||||
)
|
||||
|
||||
# Store old capacity for audit log
|
||||
old_capacity = float(user.capacity) if user.capacity else None
|
||||
old_capacity = float(user.capacity) if user.capacity is not None else None
|
||||
|
||||
# Update capacity (validation is handled by Pydantic schema)
|
||||
user.capacity = capacity.capacity_hours
|
||||
|
||||
Reference in New Issue
Block a user