mirror of
https://github.com/labring/FastGPT.git
synced 2026-02-27 01:02:22 +08:00
fix: select system tool tag (#6355)
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user