Skip to content

Commit 4c3922f

Browse files
committed
Rollback not required changes
1 parent 79277d6 commit 4c3922f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

scripts/configs.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ const getConfigForEnvironment = async (environment) => {
4949
}
5050

5151
const parsedConfig = JSON.parse(configJSON);
52-
if (
53-
!parsedConfig[':expiry']
54-
|| parsedConfig[':expiry'] < Math.round(Date.now() / 1000)
55-
) {
52+
if (!parsedConfig[':expiry'] || parsedConfig[':expiry'] < Math.round(Date.now() / 1000)) {
5653
throw new Error('Config expired');
5754
}
5855

@@ -80,10 +77,6 @@ export const getConfigValue = async (configParam, environment) => {
8077
const env = environment || calcEnvironment();
8178
const config = await getConfigForEnvironment(env);
8279
const configElements = config.data;
83-
84-
// if (configParam === "commerce-core-endpoint")
85-
// return "https://mcstaging.aemshop.net/graphql";
86-
8780
return configElements.find((c) => c.key === configParam)?.value;
8881
};
8982

0 commit comments

Comments
 (0)