Skip to content

Commit

Permalink
feat(camUser): fix global region
Browse files Browse the repository at this point in the history
  • Loading branch information
james-zhou-inspire11 committed Jun 6, 2022
1 parent c1ed872 commit feb5add
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/enums/regions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const regionMap = {
global: 'global',
southeastAsiaPacific1: 'ap-bangkok',
southeastAsiaPacific2: 'ap-jakarta',
northChina: 'ap-beijing',
Expand All @@ -24,7 +23,6 @@ export const regionMap = {
}

const {
global,
southeastAsiaPacific1,
southeastAsiaPacific2,
northChina,
Expand All @@ -49,7 +47,6 @@ const {
} = regionMap

export default [
global,
southeastAsiaPacific1,
southeastAsiaPacific2,
northChina,
Expand Down
4 changes: 2 additions & 2 deletions src/services/camUser/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { SubAccountInfo } from 'tencentcloud-sdk-nodejs/tencentcloud/services/ca
import loggerText from '../../properties/logger'
import { TencentServiceInput } from '../../types'
import { initTestEndpoint, generateTencentErrorLog } from '../../utils'
import { regionMap } from '../../enums/regions'
import { GLOBAL_REGION } from '../../config/constants'

const lt = { ...loggerText }
const { logger } = CloudGraph
Expand Down Expand Up @@ -39,7 +39,7 @@ export default async ({
camUserList.push({
id: `${instance.Uid}`,
...instance,
region: regionMap.global,
region: GLOBAL_REGION,
})
}
}
Expand Down

0 comments on commit feb5add

Please sign in to comment.