From 6fdfcf9ef78fcaa09b39a1cd69612c6db786afd7 Mon Sep 17 00:00:00 2001 From: Kiran Niranjan Date: Fri, 12 Apr 2024 10:43:11 +0530 Subject: [PATCH] SDA-4489 - Fix wrong import --- package.json | 2 +- src/app/auto-update-handler.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e6e0eb11d..3459969bc 100644 --- a/package.json +++ b/package.json @@ -251,4 +251,4 @@ "pre-commit": "pretty-quick --staged && npm run lint" } } -} \ No newline at end of file +} diff --git a/src/app/auto-update-handler.ts b/src/app/auto-update-handler.ts index 92b309811..555963bd0 100644 --- a/src/app/auto-update-handler.ts +++ b/src/app/auto-update-handler.ts @@ -1,5 +1,4 @@ import { GenericServerOptions } from 'builder-util-runtime'; -import fetch from 'electron-fetch'; import electronLog from 'electron-log'; import { MacUpdater, NsisUpdater } from 'electron-updater'; import * as fs from 'fs'; @@ -252,7 +251,7 @@ export class AutoUpdate { return; }; - private fetchLatestVersion = async (): Promise => { + private fetchLatestVersion = async (): Promise => { await this.setAutoUpdateChannel(); return new Promise((resolve) => { const url = this.getUpdateUrl(); @@ -276,6 +275,7 @@ export class AutoUpdate { url, error, ); + resolve(); }); }); };