Fix issue with getNewestSubscriptionId

This commit is contained in:
Aleksandr Kraiz
2023-06-05 19:33:07 +04:00
parent 3af4348e9c
commit 3abdf78ce3
2 changed files with 2 additions and 2 deletions

View File

@@ -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",

View File

@@ -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;