[Updater > Module] Minor source cleanup

This commit is contained in:
Ducko 2022-04-04 08:50:32 +01:00
parent 3de67cf760
commit cc02435a0b
1 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ const resetTracking = () => {
installing = Object.assign({}, base); installing = Object.assign({}, base);
}; };
exports.init = (endpoint, _settings, buildInfo) => { exports.init = (endpoint, _settings, { releaseChannel, version }) => {
log('Modules', 'Init'); log('Modules', 'Init');
settings = _settings; settings = _settings;
@ -123,11 +123,11 @@ exports.init = (endpoint, _settings, buildInfo) => {
}); });
const platform = process.platform === 'darwin' ? 'osx' : 'linux'; const platform = process.platform === 'darwin' ? 'osx' : 'linux';
hostUpdater.setFeedURL(`${endpoint}/updates/${buildInfo.releaseChannel}?platform=${platform}&version=${buildInfo.version}`); hostUpdater.setFeedURL(`${endpoint}/updates/${releaseChannel}?platform=${platform}&version=${version}`);
baseUrl = `${endpoint}/modules/${buildInfo.releaseChannel}`; baseUrl = `${endpoint}/modules/${releaseChannel}`;
baseQuery = { baseQuery = {
host_version: buildInfo.version, host_version: version,
platform platform
}; };
}; };