diff --git a/src/otomi-stack.ts b/src/otomi-stack.ts index 5eab4b513..e00d96166 100644 --- a/src/otomi-stack.ts +++ b/src/otomi-stack.ts @@ -2367,10 +2367,7 @@ export default class OtomiStack { async saveTeam(team: Team, secretPaths?: string[]): Promise { debug(`Saving team ${team.name}`) debug('team', JSON.stringify(team)) - const inTeam = team - //TODO fix this issue where resource quota needs to be saved as an object - inTeam.resourceQuota = arrayToObject((team.resourceQuota as []) ?? []) as any - const repo = this.createTeamConfigInRepo(team.name, 'settings', inTeam) + const repo = this.createTeamConfigInRepo(team.name, 'settings', team) const fileMap = getFileMaps('').find((fm) => fm.kind === 'AplTeamSettingSet')! await this.git.saveConfigWithSecrets(repo, secretPaths ?? this.getSecretPaths(), fileMap) }