SDA-4489 - Fix wrong import (#2129)

This commit is contained in:
Kiran Niranjan 2024-04-12 12:30:26 +05:30 committed by GitHub
parent 68194f4a4c
commit 6e82aca630
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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<string> => {
private fetchLatestVersion = async (): Promise<string | void> => {
await this.setAutoUpdateChannel();
return new Promise((resolve) => {
const url = this.getUpdateUrl();
@ -276,6 +275,7 @@ export class AutoUpdate {
url,
error,
);
resolve();
});
});
};