Skip to content

Commit 60b73a2

Browse files
committed
refactor(cli): Review fixing
1 parent cce2c3a commit 60b73a2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ const pullFunction = async () => {
167167
const pullCollection = async () => {
168168
const databasesIds = (await inquirer.prompt(questionsPullCollection)).databases;
169169

170-
for (let dbID of databasesIds) {
171-
const databaseId = dbID.value ? dbID.value : dbID;
170+
for (let id of databasesIds) {
171+
const databaseId = id.value ? id.value : id;
172172

173173
const database = await databasesGet({
174174
databaseId,
@@ -184,14 +184,15 @@ const pullCollection = async () => {
184184

185185
log(`Found ${total} collections`);
186186

187-
await Promise.all(collections.map(async collection => {
187+
collections.map(async collection => {
188188
log(`Fetching ${collection.name} ...`);
189189
localConfig.addCollection({
190190
...collection,
191191
'$createdAt': undefined,
192-
'$updatedAt': undefined,
192+
'$updatedAt': undefined
193193
});
194-
}))
194+
});
195+
195196
}
196197

197198
success();

0 commit comments

Comments
 (0)