Improvement on asyc calls
This commit is contained in:
1 parent
8f478c5ca3
commit
92bad2738b
3 files changed
+14
-15
No files matched your search
@@ -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) }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user