Skip to content

Commit

Permalink
SDA-4489 - Fix endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
KiranNiranjan committed Apr 15, 2024
1 parent bbada0b commit 854d4bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/auto-update-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,12 @@ export class AutoUpdate {
await this.setAutoUpdateChannel();
return new Promise((resolve) => {
const url = this.getUpdateUrl();
fetch(url)
const endpoint = `${url}/${this.finalAutoUpdateChannel}.yml`;
logger.info(
'auto-update-handler: fetching latest version info from',
endpoint,
);
fetch(endpoint)
.then((res) => res.blob())
.then((blob) => blob.text())
.then(async (response) => {
Expand Down

0 comments on commit 854d4bc

Please sign in to comment.