doc
This commit is contained in:
parent
54c5e7ae8a
commit
e955927644
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ router = APIRouter(prefix="/admin")
|
||||||
)
|
)
|
||||||
async def install(
|
async def install(
|
||||||
config: Config,
|
config: Config,
|
||||||
user: schemas.UserCreate,
|
admin_user: schemas.UserCreate,
|
||||||
current_config: Config | None = Depends(Config.load),
|
current_config: Config | None = Depends(Config.load),
|
||||||
):
|
):
|
||||||
if current_config is not None:
|
if current_config is not None:
|
||||||
|
@ -28,7 +28,7 @@ async def install(
|
||||||
async for db in Connection.get():
|
async for db in Connection.get():
|
||||||
admin_user = schemas.User.create(
|
admin_user = schemas.User.create(
|
||||||
db=db,
|
db=db,
|
||||||
user=user,
|
user=admin_user,
|
||||||
crypt_context=await config.crypto.crypt_context,
|
crypt_context=await config.crypto.crypt_context,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue