Update the new plugin status to changed (#607)

* Fix cache update after plugin uninstall

* Update new to changed
This commit is contained in:
Wu Clan
2025-05-17 09:21:11 +08:00
committed by GitHub
parent a8ecb4ae3b
commit 85b0294da9
3 changed files with 11 additions and 9 deletions
+3 -3
View File
@@ -22,9 +22,9 @@ async def get_all_plugins() -> ResponseSchemaModel[list[dict[str, Any]]]:
return response_base.success(data=plugins)
@router.get('/new', summary='是否存在新插件', dependencies=[DependsJwtAuth])
async def has_new_plugins() -> ResponseSchemaModel[bool]:
plugins = await plugin_service.has_new()
@router.get('/changed', summary='插件状态是否变更', dependencies=[DependsJwtAuth])
async def plugin_changed() -> ResponseSchemaModel[bool]:
plugins = await plugin_service.changed()
return response_base.success(data=bool(plugins))