Improvement on asyc calls

This commit is contained in:
Luis Fernando Molina committed 2019-05-13 11:59:29 +02:00
1 parent 8f478c5ca3
commit 92bad2738b
3 files changed
+14 -15

No files matched your search

+2 -4
View File
@@ -97,11 +97,9 @@ function newWorkspace () {
})
}
let fetchDataPromises = []
let result = await updateStrategies()
fetchDataPromises.push(updateStrategies())
await Promise.all(fetchDataPromises)
return result
} catch (err) {
if (ERROR_LOG === true) { logger.write('[ERROR] saveToStrategyzer -> err = ' + err.stack) }
}