mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-07 01:02:55 +08:00
fix: version-list & update docker-compose.yamls (#6526)
* fix: get version list api for workflow/agent tools * chore: update docker-composes
This commit is contained in:
@@ -11,7 +11,6 @@ import { AppToolSourceEnum } from '@fastgpt/global/core/app/tool/constants';
|
||||
import { PluginErrEnum } from '@fastgpt/global/common/error/code/plugin';
|
||||
import { Types } from '@fastgpt/service/common/mongo';
|
||||
import { splitCombineToolId } from '@fastgpt/global/core/app/tool/utils';
|
||||
import { getMCPParentId } from '@fastgpt/global/core/app/tool/mcpTool/utils';
|
||||
|
||||
export type getToolVersionListProps = PaginationProps<{
|
||||
pluginId?: string;
|
||||
@@ -63,9 +62,7 @@ async function handler(
|
||||
});
|
||||
return app._id;
|
||||
} else {
|
||||
const item = await getSystemToolByIdAndVersionId(formatPluginId);
|
||||
if (!item) return Promise.reject(PluginErrEnum.unAuth);
|
||||
return item.associatedPluginId;
|
||||
return formatPluginId;
|
||||
}
|
||||
})();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user