File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,7 @@ const getConfigForEnvironment = async (environment) => {
49
49
}
50
50
51
51
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 ) ) {
56
53
throw new Error ( 'Config expired' ) ;
57
54
}
58
55
@@ -80,10 +77,6 @@ export const getConfigValue = async (configParam, environment) => {
80
77
const env = environment || calcEnvironment ( ) ;
81
78
const config = await getConfigForEnvironment ( env ) ;
82
79
const configElements = config . data ;
83
-
84
- // if (configParam === "commerce-core-endpoint")
85
- // return "https://mcstaging.aemshop.net/graphql";
86
-
87
80
return configElements . find ( ( c ) => c . key === configParam ) ?. value ;
88
81
} ;
89
82
You can’t perform that action at this time.
0 commit comments