Skip to content

Commit

Permalink
fix: app/dataset list api return private flag (#3784)
Browse files Browse the repository at this point in the history
  • Loading branch information
FinleyGe authored Feb 14, 2025
1 parent 7aacce8 commit abd375c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 @@ -197,7 +197,7 @@ async function handler(req: ApiRequestProps<ListAppBody>): Promise<AppListItemTy
return {
...app,
permission: Per,
privateApp
private: privateApp
};
})
.filter((app) => app.permission.hasReadPer);
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 @@ -177,7 +177,7 @@ async function handler(req: ApiRequestProps<GetDatasetListBody>) {
tmbId: dataset.tmbId,
updateTime: dataset.updateTime,
permission: Per,
privateDataset
private: privateDataset
};
})
.filter((app) => app.permission.hasReadPer);
Expand Down

0 comments on commit abd375c

Please sign in to comment.