This commit is contained in:
Jörn-Michael Miehe 2022-03-19 23:56:21 +00:00
parent 54c5e7ae8a
commit e955927644

View file

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