fix: 修复provider_delete的意外参数错误

This commit is contained in:
朝夕 2026-04-27 23:31:48 +08:00
parent 07ec53fccd
commit 355746f431
1 changed files with 1 additions and 2 deletions

View File

@ -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"}