Skip to content

Commit 5fc13ab

Browse files
committed
Ensure team preferences aren't pulled down
Team preferences are considered data and can change frequently. It doesn't make sense to be persisted in the appwrite.json.
1 parent e9f4cc9 commit 5fc13ab

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

templates/cli/lib/commands/init.js.twig

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,8 @@ const initTeam = async () => {
231231

232232
teams.forEach(async team => {
233233
log(`Fetching ${team.name} ...`);
234-
localConfig.addTeam({
235-
...team,
236-
'$createdAt': undefined,
237-
'$updatedAt': undefined,
238-
'total': undefined
239-
});
234+
const { total, $updatedAt, $createdAt, prefs, ...rest } = team;
235+
localConfig.addTeam(rest);
240236
});
241237

242238
success();

0 commit comments

Comments
 (0)