eos-version-compat

This commit is contained in:
Drew Ansbacher
2021-10-22 16:09:31 -06:00
committed by Aiden McClelland
parent bb72bdb9d1
commit 221d99bfee
4 changed files with 10 additions and 8 deletions

View File

@@ -194,14 +194,14 @@ export module RR {
export type GetMarketplaceDataRes = MarketplaceData
export type GetMarketplaceEOSReq = {
'eos-version': string
'eos-version-compat': string
}
export type GetMarketplaceEOSRes = MarketplaceEOS
export type GetMarketplacePackagesReq = {
ids?: { id: string, version: string }[]
// iff !id
'eos-version': string
'eos-version-compat': string
category?: string
query?: string
page?: string

View File

@@ -30,6 +30,7 @@ export interface ServerInfo {
size: number
downloaded: number
}
'eos-version-compat': string
}
export enum ServerStatus {

View File

@@ -116,7 +116,7 @@ export class StartupAlertsService {
private async osUpdateCheck (): Promise<RR.GetMarketplaceEOSRes | undefined> {
const res = await this.api.getEos({
'eos-version': this.config.version,
'eos-version-compat': this.patch.data['server-info']['eos-version-compat'],
})
if (this.emver.compare(this.config.version, res.version) === -1) {