diff --git a/api/kiwi_vpn_api/routers/admin.py b/api/kiwi_vpn_api/routers/admin.py index b43f1ae..609edb7 100644 --- a/api/kiwi_vpn_api/routers/admin.py +++ b/api/kiwi_vpn_api/routers/admin.py @@ -63,7 +63,7 @@ async def create_initial_admin( raise HTTPException(status_code=status.HTTP_409_CONFLICT) # create an administrative user - new_user = User.create(admin_user) + new_user = User.create(user=admin_user) new_user.set_capabilities([UserCapabilityType.admin]) new_user.update()