Skip to content

Commit

Permalink
make more pithy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvpickering committed Aug 24, 2022
1 parent 5056c23 commit 0a6202b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/api.v2/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ const ACCOUNT_ID = {
};

const ADMIN_SUB = {
BIOMAGE: '032abd44-0cd3-4d58-af21-850ca0b95ac7',
HMS: 'a01e8bcc-c9a2-4c56-bd66-39de93764be8',
[ACCOUNT_ID.Biomage]: '032abd44-0cd3-4d58-af21-850ca0b95ac7',
[ACCOUNT_ID.HMS]: 'a01e8bcc-c9a2-4c56-bd66-39de93764be8',

};

Expand Down
4 changes: 2 additions & 2 deletions src/config/default-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const AWS = require('aws-sdk');
const getLogger = require('../utils/getLogger');

const logger = getLogger();
const { ACCOUNT_ID, ADMIN_SUB } = require('../api.v2/constants');
const { ADMIN_SUB } = require('../api.v2/constants');

const githubOrganisationName = 'hms-dbmi-cellenics';

Expand Down Expand Up @@ -79,7 +79,7 @@ const config = {
pipelineInstanceConfigUrl: `https://raw.githubusercontent.com/${githubOrganisationName}/iac/master/releases/production/pipeline.yaml`,
cachingEnabled: true,
corsOriginUrl: `https://${domainName}`,
adminSub: process.env.AWS_ACCOUNT_ID === ACCOUNT_ID.HMS ? ADMIN_SUB.HMS : ADMIN_SUB.BIOMAGE,
adminSub: ADMIN_SUB[process.env.AWS_ACCOUNT_ID],
};


Expand Down

0 comments on commit 0a6202b

Please sign in to comment.