fix /usermanager/api/v1/extensions (#730)

Requests to `POST /usermanager/api/v1/extensions` would silently fail due to a missing `await`.
This commit is contained in:
Lee Salminen 2022-07-17 06:38:00 -06:00 committed by GitHub
parent 6646fce549
commit 8079325ec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ async def api_usermanager_activate_extension(
raise HTTPException(
status_code=HTTPStatus.NOT_FOUND, detail="User does not exist."
)
update_user_extension(user_id=userid, extension=extension, active=active)
await update_user_extension(user_id=userid, extension=extension, active=active)
return {"extension": "updated"}