considering active property of strategies

This commit is contained in:
Luis Fernando Molina committed 2019-05-13 08:57:54 +02:00
1 parent 665062d4da
commit 308f564509
2 files changed
+4 -2

No files matched your search

+1
View File
@@ -5,6 +5,7 @@ const GRAPHQL_QUERY_GET_STRATEGIES = Apollo.gql`
id
subStrategies(activeOnly: true){
name
active
entryPoint{
situations{
name
+3 -2
View File
@@ -88,7 +88,7 @@ function newWorkspace () {
}
})
.then(response => {
console.log('FUNCO!!')
console.log('Strategies Saved')
resolve(true)
})
.catch(err => {
@@ -105,7 +105,7 @@ function newWorkspace () {
// When all asynchronous fetches resolve, authenticate user or throw error.
await Promise.all(fetchDataPromises).then(result => {
console.log('parece que anda??')
}, err => {
if (ERROR_LOG === true) { logger.write('[ERROR] saveToStrategyzer -> GraphQL Fetch Error -> err = ' + err.stack) }
})
@@ -127,6 +127,7 @@ function newWorkspace () {
let workspaceStrategy = thisObject.tradingSystem.protocolData.strategies[m]
let strategy = {
name: workspaceStrategy.name,
active: workspaceStrategy.active,
entryPoint: {
situations: []
},