File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
packages/data-service/src Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ import { createLogger } from '@mongodb-js/compass-logging';
22const { mongoLogId, log } = createLogger ( 'END-OF-LIFE-SERVER' ) ;
33
44const FALLBACK_END_OF_LIFE_SERVER_VERSION = '4.4' ;
5- const { HADRON_AUTO_UPDATE_ENDPOINT , HADRON_AUTO_UPDATE_ENDPOINT_OVERRIDE } =
6- process . env ;
7- const updateEndpoint =
8- HADRON_AUTO_UPDATE_ENDPOINT_OVERRIDE ?? HADRON_AUTO_UPDATE_ENDPOINT ;
5+ const {
6+ HADRON_AUTO_UPDATE_ENDPOINT = process . env
7+ . HADRON_AUTO_UPDATE_ENDPOINT_OVERRIDE ,
8+ } = process . env ;
99
1010let latestEndOfLifeServerVersion : Promise < string > | null = null ;
1111
1212export async function getLatestEndOfLifeServerVersion ( ) : Promise < string > {
13- if ( ! updateEndpoint ) {
13+ if ( ! HADRON_AUTO_UPDATE_ENDPOINT ) {
1414 log . debug (
1515 mongoLogId ( 1_001_000_350 ) ,
1616 'getLatestEndOfLifeServerVersion' ,
@@ -26,7 +26,9 @@ export async function getLatestEndOfLifeServerVersion(): Promise<string> {
2626 'getLatestEndOfLifeServerVersion' ,
2727 'Fetching EOL server version'
2828 ) ;
29- latestEndOfLifeServerVersion = fetch ( `${ updateEndpoint } /eol-server` )
29+ latestEndOfLifeServerVersion = fetch (
30+ `${ HADRON_AUTO_UPDATE_ENDPOINT } /api/v2/eol-server`
31+ )
3032 . then ( async ( response ) => {
3133 if ( response . ok ) {
3234 const result = await response . text ( ) ;
You can’t perform that action at this time.
0 commit comments