File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
templates/cli/lib/commands Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -167,8 +167,8 @@ const pullFunction = async () => {
167
167
const pullCollection = async () => {
168
168
const databasesIds = (await inquirer.prompt(questionsPullCollection)).databases;
169
169
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 ;
172
172
173
173
const database = await databasesGet({
174
174
databaseId,
@@ -184,14 +184,15 @@ const pullCollection = async () => {
184
184
185
185
log(`Found ${total} collections`);
186
186
187
- await Promise.all( collections.map(async collection => {
187
+ collections.map(async collection => {
188
188
log(`Fetching ${collection.name} ...`);
189
189
localConfig.addCollection({
190
190
...collection,
191
191
'$createdAt': undefined,
192
- '$updatedAt': undefined,
192
+ '$updatedAt': undefined
193
193
});
194
- }))
194
+ });
195
+
195
196
}
196
197
197
198
success();
You can’t perform that action at this time.
0 commit comments