Skip to content

Commit 8a71fc9

Browse files
author
Artem
committed
#RI-4530 fix subscription provider and region
1 parent e8b2011 commit 8a71fc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redisinsight/api/src/modules/cloud/autodiscovery/utils/redis-cloud-converter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ export const parseCloudSubscriptionsResponse = (
3232
name: subscription.name,
3333
numberOfDatabases: subscription.numberOfDatabases,
3434
status: subscription.status,
35-
provider: get(subscription, ['cloudDetails', 0, 'provider']),
35+
provider: get(subscription, ['cloudDetails', 0, 'provider'], get(subscription, 'provider')),
3636
region: get(subscription, [
3737
'cloudDetails',
3838
0,
3939
'regions',
4040
0,
4141
'region',
42-
]),
42+
], get(subscription, 'region')),
4343
}));
4444
});
4545
}

0 commit comments

Comments
 (0)