mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
eos-version-compat
This commit is contained in:
committed by
Aiden McClelland
parent
bb72bdb9d1
commit
221d99bfee
@@ -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
|
||||
|
||||
@@ -30,6 +30,7 @@ export interface ServerInfo {
|
||||
size: number
|
||||
downloaded: number
|
||||
}
|
||||
'eos-version-compat': string
|
||||
}
|
||||
|
||||
export enum ServerStatus {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user