use kwarg in User.create

This commit is contained in:
Jörn-Michael Miehe 2022-03-29 15:34:50 +00:00
parent 4120a9b71f
commit f058f29d9a

View file

@ -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()