mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
head end timing for loadInstalledApp
This commit is contained in:
committed by
Keagan McClelland
parent
95a0bfdd1e
commit
c4fe73398e
@@ -50,8 +50,9 @@ export class ModelPreload {
|
|||||||
}
|
}
|
||||||
|
|
||||||
loadInstalledApp (appId: string): Promise<PropertySubject<AppInstalledFull>> {
|
loadInstalledApp (appId: string): Promise<PropertySubject<AppInstalledFull>> {
|
||||||
|
const now = new Date()
|
||||||
return this.api.getInstalledApp(appId).then(res => {
|
return this.api.getInstalledApp(appId).then(res => {
|
||||||
this.appModel.update({ id: appId, ...res, hasFetchedFull: true })
|
this.appModel.update({ id: appId, ...res, hasFetchedFull: true }, now)
|
||||||
return this.appModel.watch(appId)
|
return this.appModel.watch(appId)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ export class AppConfigPage extends Cleanup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return this.apiService.patchAppConfig(app, config).then(
|
return this.apiService.patchAppConfig(app, config).then(
|
||||||
() => this.preload.loadInstalledApp(this.appId).then(() => ({ skip: false})),
|
() => this.preload.loadInstalledApp(this.appId).then(() => ({ skip: false })),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
.then(({ skip }) => {
|
.then(({ skip }) => {
|
||||||
|
|||||||
@@ -256,3 +256,4 @@ const dryRunParam = (dryRun: boolean, first: boolean) => {
|
|||||||
if (!dryRun) return ''
|
if (!dryRun) return ''
|
||||||
return first ? `?dryrun` : `&dryrun`
|
return first ? `?dryrun` : `&dryrun`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user