Skip to content

Commit 13c8076

Browse files
committed
Remove extra keys from appwrite.json
1 parent 898a066 commit 13c8076

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,11 @@ const initCollection = async ({ all, databaseId } = {}) => {
182182

183183
collections.forEach(async collection => {
184184
log(`Fetching ${collection.name} ...`);
185-
localConfig.addCollection(collection);
185+
localConfig.addCollection({
186+
...collection,
187+
'$createdAt': undefined,
188+
'$updatedAt': undefined,
189+
});
186190
});
187191
}
188192

@@ -201,7 +205,12 @@ const initTeam = async () => {
201205

202206
teams.forEach(async team => {
203207
log(`Fetching ${team.name} ...`);
204-
localConfig.addTeam(team);
208+
localConfig.addTeam({
209+
...team,
210+
'$createdAt': undefined,
211+
'$updatedAt': undefined,
212+
'total': undefined
213+
});
205214
});
206215

207216
success();

0 commit comments

Comments
 (0)