Adding bot type on listing
This commit is contained in:
1 parent
8771349d10
commit
cd8e34065b
3 files changed
+3
No files matched your search
@@ -9,6 +9,7 @@ const cloneDetails = async(authorization, botsByUser, clone) => {
|
||||
let selectedBot = getSelectedBot(botsByUser.data.data.teams_FbByTeamMember, clone.botId)
|
||||
clone.teamId = botsByUser.data.data.teams_FbByTeamMember.id
|
||||
clone.botId = selectedBot.id
|
||||
clone.kind = selectedBot.kind
|
||||
clone.teamSlug = botsByUser.data.data.teams_FbByTeamMember.slug
|
||||
clone.botSlug = selectedBot.slug
|
||||
clone.cloneName = getJobNameFromClone(clone)
|
||||
|
||||
@@ -34,6 +34,7 @@ const resolve = async(parent, args, context) => {
|
||||
|
||||
for (var i = 0; i < clones.length; i++) {
|
||||
clones[i] = await cloneDetails(context.authorization, botsByUser, clones[i])
|
||||
clones[i].botType = clones[i].kind // Only for listing we show the teams value
|
||||
}
|
||||
|
||||
return clones
|
||||
|
||||
@@ -39,6 +39,7 @@ const resolve = async(parent, args, context) => {
|
||||
clones[i].state = state.substring(1, state.length-1)
|
||||
let lastLogs = await getCloneLogs(clones[i].cloneName)
|
||||
clones[i].lastLogs = lastLogs.substring(1, lastLogs.length-1)
|
||||
clones[i].botType = clones[i].kind // Only for listing we show the teams value
|
||||
}
|
||||
return clones
|
||||
} catch (err){
|
||||
|
||||
Reference in new issue
Block a user