considering active property of strategies
This commit is contained in:
1 parent
665062d4da
commit
308f564509
2 files changed
+4
-2
No files matched your search
@@ -5,6 +5,7 @@ const GRAPHQL_QUERY_GET_STRATEGIES = Apollo.gql`
|
||||
id
|
||||
subStrategies(activeOnly: true){
|
||||
name
|
||||
active
|
||||
entryPoint{
|
||||
situations{
|
||||
name
|
||||
|
||||
@@ -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: []
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user