@@ -290,18 +290,18 @@ const pushResources = async () => {
290
290
}
291
291
292
292
if (cliConfig.all) {
293
- for(let action of Object.values(actions)){
293
+ for (let action of Object.values(actions)) {
294
294
await action();
295
295
}
296
296
} else {
297
297
const answers = await inquirer.prompt(questionsPushResources[0]);
298
298
299
- answers.resources.forEach((resource) => {
299
+ for (let resource of answers.resources) {
300
300
const action = actions[resource];
301
301
if (action !== undefined) {
302
- await action();
302
+ await action();
303
303
}
304
- })
304
+ }
305
305
}
306
306
};
307
307
@@ -932,15 +932,14 @@ const pushCollection = async () => {
932
932
databaseId: collection['databaseId'],
933
933
collectionId: collection['$id'],
934
934
parseOutput: false,
935
- });
936
935
});
937
936
938
937
if (remoteCollection.name !== collection.name) {
939
938
await databasesUpdateCollection({
940
939
databaseId: collection['databaseId'],
941
940
collectionId: collection['$id'],
942
941
name: collection.name,
943
- name: collection.name,
942
+ name: collection.name,
944
943
parseOutput: false
945
944
})
946
945
@@ -949,7 +948,8 @@ const pushCollection = async () => {
949
948
collection.remoteVersion = remoteCollection;
950
949
951
950
collection.isExisted = true;
952
- } catch (e) {
951
+ } catch
952
+ (e) {
953
953
if (Number(e.code) === 404) {
954
954
log(`Collection ${collection.name} does not exist in the project. Creating ... `);
955
955
await databasesCreateCollection({
@@ -966,7 +966,7 @@ const pushCollection = async () => {
966
966
}
967
967
}))
968
968
969
- // Serialize attribute actions
969
+ // Serialize attribute actions
970
970
for (let collection of collections) {
971
971
let attributes = collection.attributes;
972
972
0 commit comments