Commit 430dde38 by Finley Ge Committed by GitHub

fix: select system tool tag (#6355)

parent 470eeca0
...@@ -14,7 +14,9 @@ async function handler( ...@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment