Skip to content

Commit

Permalink
set default alias with label (#222)
Browse files Browse the repository at this point in the history
* set default alias with label

* use local hf-algo dependency

* update local hf-algo dependency

* fix: remove alias default value assignment
  • Loading branch information
iamarifdev authored Feb 23, 2023
1 parent 2a23ffa commit 67fdfc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions lib/ws_servers/api/algos/algo_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class AlgoWorker {
})
.map(({ gid, alias, createdAt, algoID, state, lastActive }) => {
const { args, label, name } = state
return { args, gid, alias: alias || name, createdAt, algoID, label, name, lastActive }
return { args, gid, alias, createdAt, algoID, label, name, lastActive }
})
}

Expand Down Expand Up @@ -365,8 +365,7 @@ class AlgoWorker {
try {
const [serialized, uiData] = await ao

const { id, name, label, args, gid, i18n, createdAt } = uiData
const alias = uiData.alias || name
const { id, name, alias, label, args, gid, i18n, createdAt } = uiData
const lastActive = serialized.lastActive || createdAt

d('ao started: %s %s', alias, label)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"bfx-api-node-core": "git+https://github.com/bitfinexcom/bfx-api-node-core.git#v1.6.1",
"bfx-api-node-plugin-wd": "^1.0.4",
"bfx-api-node-rest": "^4.6.1",
"bfx-hf-algo": "git+https://github.com/bitfinexcom/bfx-hf-algo.git#v4.17.1",
"bfx-hf-algo": "git+https://github.com/arifjmamun/bfx-hf-algo.git#feature/default-alias",
"bfx-hf-ext-plugin-dummy": "github:bitfinexcom/bfx-hf-ext-plugin-dummy#v1.0.4",
"bfx-hf-indicators": "git+https://github.com/bitfinexcom/bfx-hf-indicators.git#v2.1.1",
"bfx-hf-models": "git+https://github.com/bitfinexcom/bfx-hf-models.git#v4.0.0",
Expand Down

0 comments on commit 67fdfc7

Please sign in to comment.