fix: 修复provider_delete的意外参数错误
This commit is contained in:
parent
07ec53fccd
commit
355746f431
|
|
@ -50,6 +50,5 @@ async def get_provider_list(_: TokenData = Depends(Accessor.get_current_user)) -
|
||||||
@provider_router.delete("/{provider_title}")
|
@provider_router.delete("/{provider_title}")
|
||||||
async def delete_provider(provider_title: str, _: TokenData = Depends(RoleChecker(allowed_roles=UserAuthority.SUPER_ADMINISTRATOR))) -> dict:
|
async def delete_provider(provider_title: str, _: TokenData = Depends(RoleChecker(allowed_roles=UserAuthority.SUPER_ADMINISTRATOR))) -> dict:
|
||||||
global_state_machine = ray_actor_hook("global_state_machine").global_state_machine
|
global_state_machine = ray_actor_hook("global_state_machine").global_state_machine
|
||||||
postgres_database = ray_actor_hook("postgres_database").postgres_database
|
await global_state_machine.delete_provider.remote(provider_title=provider_title)
|
||||||
await global_state_machine.delete_provider.remote( provider_title=provider_title, postgres_database=postgres_database)
|
|
||||||
return {"message": "success"}
|
return {"message": "success"}
|
||||||
Loading…
Reference in New Issue