fix: select system tool tag (#6355)

This commit is contained in:
Finley Ge
2026-01-30 19:35:29 +08:00
committed by GitHub
parent 470eeca060
commit 430dde3844

View File

@@ -14,7 +14,9 @@ async function handler(
): Promise<GetPluginTagListResponse> { ): Promise<GetPluginTagListResponse> {
await authCert({ req, authToken: true }); await authCert({ req, authToken: true });
return await MongoPluginToolTag.find().sort({ tagOrder: 1 }).lean(); return (await MongoPluginToolTag.find().sort({ tagOrder: 1 }).lean()).filter(
(item) => !!item.tagId
);
} }
export default NextAPI(handler); export default NextAPI(handler);