Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
FinleyGe committed Jan 10, 2025
1 parent a7779aa commit 2a7abed
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/global/support/user/team/org/type.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type OrgMemberSchemaType = {
teamId: string;
orgId: string;
tmbId: string;
org: OrgSchemaType;
};

type OrgType = Omit<OrgSchemaType, 'avatar'> & {
Expand Down
2 changes: 1 addition & 1 deletion projects/app/src/pages/api/core/app/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async function handler(req: ApiRequestProps<ListAppBody>): Promise<AppListItemTy
(item) =>
String(item.tmbId) === String(tmbId) ||
myGroupMap.has(String(item.groupId)) ||
myOrgSet.has(String(item.orgId))
myOrgSet.includes(String(item.orgId))
);

const findAppsQuery = (() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { getTestRequest } from '@/test/utils';
import handler from './publish';
import { MongoAppVersion } from '@fastgpt/service/core/app/version/schema';
import { PostPublishAppProps } from '@/global/core/app/api';
import { AppTypeEnum } from '@fastgpt/global/core/app/constants';

describe('发布应用版本测试', () => {
test('发布一个未发布的版本', async () => {
Expand Down
2 changes: 1 addition & 1 deletion projects/app/src/pages/api/core/dataset/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async function handler(req: ApiRequestProps<GetDatasetListBody>) {
(item) =>
String(item.tmbId) === String(tmbId) ||
myGroupMap.has(String(item.groupId)) ||
myOrgSet.has(String(item.orgId))
myOrgSet.includes(String(item.orgId))
);

const findDatasetQuery = (() => {
Expand Down

0 comments on commit 2a7abed

Please sign in to comment.