Skip to content

Commit 0bffae9

Browse files
authored
fix: only return app id and enabled for teams (#745)
* fix: only return app id and enabled for teams
1 parent 698f92f commit 0bffae9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/otomi-stack.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,7 @@ export default class OtomiStack {
564564
this.filterExcludedApp(app)
565565

566566
if (teamId === 'admin') return app
567-
const adminApp = this.repoService.getTeamConfigService(teamId).getApp(id)
568-
return { ...cloneDeep(app), enabled: adminApp.enabled }
567+
return { id: app.id, enabled: app.enabled }
569568
}
570569

571570
getApp(name: string): App {

0 commit comments

Comments
 (0)