use kwarg in User.create
This commit is contained in:
parent
4120a9b71f
commit
f058f29d9a
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ async def create_initial_admin(
|
||||||
raise HTTPException(status_code=status.HTTP_409_CONFLICT)
|
raise HTTPException(status_code=status.HTTP_409_CONFLICT)
|
||||||
|
|
||||||
# create an administrative user
|
# 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.set_capabilities([UserCapabilityType.admin])
|
||||||
new_user.update()
|
new_user.update()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue