Skip to content

Commit feb5add

Browse files
feat(camUser): fix global region
1 parent c1ed872 commit feb5add

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/enums/regions.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export const regionMap = {
2-
global: 'global',
32
southeastAsiaPacific1: 'ap-bangkok',
43
southeastAsiaPacific2: 'ap-jakarta',
54
northChina: 'ap-beijing',
@@ -24,7 +23,6 @@ export const regionMap = {
2423
}
2524

2625
const {
27-
global,
2826
southeastAsiaPacific1,
2927
southeastAsiaPacific2,
3028
northChina,
@@ -49,7 +47,6 @@ const {
4947
} = regionMap
5048

5149
export default [
52-
global,
5350
southeastAsiaPacific1,
5451
southeastAsiaPacific2,
5552
northChina,

src/services/camUser/data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { SubAccountInfo } from 'tencentcloud-sdk-nodejs/tencentcloud/services/ca
77
import loggerText from '../../properties/logger'
88
import { TencentServiceInput } from '../../types'
99
import { initTestEndpoint, generateTencentErrorLog } from '../../utils'
10-
import { regionMap } from '../../enums/regions'
10+
import { GLOBAL_REGION } from '../../config/constants'
1111

1212
const lt = { ...loggerText }
1313
const { logger } = CloudGraph
@@ -39,7 +39,7 @@ export default async ({
3939
camUserList.push({
4040
id: `${instance.Uid}`,
4141
...instance,
42-
region: regionMap.global,
42+
region: GLOBAL_REGION,
4343
})
4444
}
4545
}

0 commit comments

Comments
 (0)