Skip to content

Commit

Permalink
fix(Plugin): 重置插件时初始化调整为reload,以保留默认配置
Browse files Browse the repository at this point in the history
  • Loading branch information
InfinityPacer committed Jul 23, 2024
1 parent e2acec3 commit da2c755
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/api/endpoints/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,7 @@ def reset_plugin(plugin_id: str, _: schemas.TokenPayload = Depends(verify_token)
# 删除插件所有数据
PluginManager().delete_plugin_data(plugin_id)
# 重新生效插件
PluginManager().init_plugin(plugin_id, {
"enabled": False,
"enable": False
})
PluginManager().reload_plugin(plugin_id)
# 注册插件服务
Scheduler().update_plugin_job(plugin_id)
# 注册插件API
Expand Down

0 comments on commit da2c755

Please sign in to comment.