mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
ui: fix emver check in startup alerts notifier
This commit is contained in:
committed by
Aiden McClelland
parent
13a6d7f0c7
commit
68faa17ab6
@@ -83,7 +83,6 @@ export class StartupAlertsNotifier {
|
||||
return server.autoCheckUpdates
|
||||
}
|
||||
|
||||
|
||||
private async osUpdateCheck (s: Readonly<S9Server>): Promise<string | undefined> {
|
||||
const { versionLatest } = await this.apiService.getVersionLatest()
|
||||
return this.osUpdateService.updateIsAvailable(s.versionInstalled, versionLatest) ? versionLatest : undefined
|
||||
@@ -91,7 +90,9 @@ export class StartupAlertsNotifier {
|
||||
|
||||
private async appsCheck (): Promise<boolean> {
|
||||
const availableApps = await this.apiService.getAvailableApps()
|
||||
return !!availableApps.find(app => this.emver.compare(app.versionInstalled, app.versionLatest) === -1)
|
||||
return !!availableApps.find(
|
||||
app => app.versionInstalled && this.emver.compare(app.versionInstalled, app.versionLatest) === -1,
|
||||
)
|
||||
}
|
||||
|
||||
private async displayOsWelcome (s: Readonly<S9Server>): Promise<boolean> {
|
||||
|
||||
Reference in New Issue
Block a user