Sync with latest version of clone executor

This commit is contained in:
Matias committed 2019-04-01 12:09:16 +02:00
1 parent 3dd3e6dbd6
commit 9a2d671a97
14 files changed
+500 -452

No files matched your search

+1
View File
@@ -10,6 +10,7 @@ const cloneDetails = (selectedBot, clone) => {
clone.teamSlug = selectedBot.team.slug
clone.teamAvatar = selectedBot.team.profile.avatar
clone.userLoggedIn = selectedBot.team.members[0].member.alias
clone.botType = selectedBot.kind
}
return clone
}
@@ -31,7 +31,6 @@ const resolve = async(parent, { botType }, context) => {
let bot = allUserBots[j].node
if(clones[i].botId === bot.id){
let clone = cloneDetails(bot, clones[i])
clone.botType = bot.kind
cloneResponse.push(clone)
break
}
-1
View File
@@ -34,7 +34,6 @@ const resolve = async (parent, { botType, queryLogs }, context) => {
let bot = allUserBots[j].node
if(clones[i].botId === bot.id){
let clone = cloneDetails(bot, clones[i])
clone.botType = bot.kind
cloneResponse.push(clone)
break
}
+2 -1
View File
@@ -25,7 +25,8 @@ const Type = new GraphQLInputObjectType({
processName: { type: new GraphQLNonNull(GraphQLString) },
botType: { type: new GraphQLNonNull(GraphQLString) },
keyId: { type: GraphQLString },
timePeriod: { type: GraphQLString }
timePeriod: { type: GraphQLString },
exchangeName: { type: GraphQLString }
})
})