From 67fdfc770bfdbe0a8873520e1e9bcd911a2e9ca6 Mon Sep 17 00:00:00 2001 From: Ariful Islam Date: Thu, 23 Feb 2023 20:56:20 +0600 Subject: [PATCH] set default alias with label (#222) * set default alias with label * use local hf-algo dependency * update local hf-algo dependency * fix: remove alias default value assignment --- lib/ws_servers/api/algos/algo_worker.js | 5 ++--- package.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/ws_servers/api/algos/algo_worker.js b/lib/ws_servers/api/algos/algo_worker.js index fbdf23a1..9366dabc 100644 --- a/lib/ws_servers/api/algos/algo_worker.js +++ b/lib/ws_servers/api/algos/algo_worker.js @@ -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 } }) } @@ -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) diff --git a/package.json b/package.json index 18e9a450..efa0dfd6 100644 --- a/package.json +++ b/package.json @@ -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",