Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
Fixed bug in bot manager where it would not pull the bots since they …
Browse files Browse the repository at this point in the history
…did not have a hide value
  • Loading branch information
coltoneshaw committed Aug 23, 2021
1 parent 3a7ecb6 commit 04af6ba
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.2.2
## Bug
- Issue with bot manager not properly pulling in the bots.

# v0.2.1

## Enhancements
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "3c-portfolio-manager",
"productName": "3C Portfolio Manager",
"version": "0.2.1",
"version": "0.2.2",
"description": "An application to manage your 3Commas portfolio.",
"private": true,
"main": "./dist/main.js",
Expand Down
3 changes: 2 additions & 1 deletion src/app/Features/3Commas/API/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ async function getAndStoreBotData() {
const currentBots = await query("select id, hide from bots where origin = 'sync'")

data = data.map( bot => {
const hide = currentBots.find( b => b.id == bot.id).hide
const current = currentBots.find( b => b.id == bot.id)
const hide = (current != undefined) ? current.hide : false;
return {
...bot,
hide
Expand Down
11 changes: 10 additions & 1 deletion src/app/Features/Changelog/changelogText.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

const mostRecent = '0.2.1'
const mostRecent = '0.2.2'


const versionInformation = [
Expand Down Expand Up @@ -166,6 +166,15 @@ const versionInformation = [
],
new: []
},
{
version: '0.2.2',
enhancements: [
],
bugs: [
'Bot manager was not properly downloading the bots'
],
new: []
},
]

export {
Expand Down

0 comments on commit 04af6ba

Please sign in to comment.