Skip to content

Commit c158340

Browse files
fix typo
1 parent 91b7343 commit c158340

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

redisinsight/api/src/modules/database/entities/database.entity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export enum HostingProvider {
2727
KVROCKS = 'KVROCKS',
2828
REDICT = 'REDICT',
2929
UPSTASH = 'UPSTASH',
30-
UKNOWN_LOCALHOST = 'UKNOWN_LOCALHOST',
30+
UNKNOWN_LOCALHOST = 'UNKNOWN_LOCALHOST',
3131
UNKNOWN = 'UNKNOWN',
3232
}
3333

redisinsight/api/src/utils/hosting-provider-helper.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { mockStandaloneRedisClient } from 'src/__mocks__';
33
import { getHostingProvider } from './hosting-provider-helper';
44

55
const getHostingProviderTests = [
6-
{ input: '127.0.0.1', output: HostingProvider.UKNOWN_LOCALHOST },
7-
{ input: '0.0.0.0', output: HostingProvider.UKNOWN_LOCALHOST },
8-
{ input: 'localhost', output: HostingProvider.UKNOWN_LOCALHOST },
9-
{ input: '172.18.0.2', output: HostingProvider.UKNOWN_LOCALHOST },
6+
{ input: '127.0.0.1', output: HostingProvider.UNKNOWN_LOCALHOST },
7+
{ input: '0.0.0.0', output: HostingProvider.UNKNOWN_LOCALHOST },
8+
{ input: 'localhost', output: HostingProvider.UNKNOWN_LOCALHOST },
9+
{ input: '172.18.0.2', output: HostingProvider.UNKNOWN_LOCALHOST },
1010
{ input: '176.87.56.244', output: HostingProvider.UNKNOWN },
1111
{ input: '192.12.56.244', output: HostingProvider.UNKNOWN },
1212
{ input: '255.255.56.244', output: HostingProvider.UNKNOWN },

redisinsight/api/src/utils/hosting-provider-helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ export const getHostingProvider = async (client: RedisClient, databaseHost: stri
111111
}
112112

113113
if (host === '0.0.0.0' || host === 'localhost' || host === '127.0.0.1') {
114-
return HostingProvider.UKNOWN_LOCALHOST;
114+
return HostingProvider.UNKNOWN_LOCALHOST;
115115
}
116116

117117
// todo: investigate weather we need this
118118
if (IP_ADDRESS_REGEX.test(host) && PRIVATE_IP_ADDRESS_REGEX.test(host)) {
119-
return HostingProvider.UKNOWN_LOCALHOST;
119+
return HostingProvider.UNKNOWN_LOCALHOST;
120120
}
121121
} catch (e) {
122122
// ignore any error

redisinsight/api/test/api/database/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const providers = [
1919
'KVROCKS',
2020
'REDICT',
2121
'UPSTASH',
22-
'UKNOWN_LOCALHOST',
22+
'UNKNOWN_LOCALHOST',
2323
'UNKNOWN',
2424
];
2525

0 commit comments

Comments
 (0)