mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-14 06:02:36 +03:00
Fix issue with getNewestSubscriptionId
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.19.21",
|
||||
"version": "0.19.22",
|
||||
"description": "Orion Protocol SDK",
|
||||
"main": "./lib/index.cjs",
|
||||
"module": "./lib/index.js",
|
||||
|
||||
@@ -317,7 +317,7 @@ class AggregatorWS {
|
||||
*/
|
||||
getNewestSubscriptionId(id: string): string {
|
||||
const newId = this.subIdReplacements[id];
|
||||
if (newId !== undefined) {
|
||||
if (newId !== undefined && newId !== id) {
|
||||
return this.getNewestSubscriptionId(newId);
|
||||
}
|
||||
return id;
|
||||
|
||||
Reference in New Issue
Block a user