agent: adds restore alerts

This commit is contained in:
Aaron Greenspan
2021-01-19 18:29:29 -07:00
committed by Aiden McClelland
parent 18f18e3b95
commit db8a26c84c
3 changed files with 7 additions and 1 deletions

View File

@@ -288,6 +288,7 @@ getInstalledAppByIdLogic appId = do
, appInstalledFullTorAddress = Nothing
, appInstalledFullConfiguredRequirements = []
, appInstalledFullUninstallAlert = Nothing
, appInstalledFullRestoreAlert = Nothing
}
serverApps <- AppMgr2.list [AppMgr2.flags|-s -d|]
let remapped = remapAppMgrInfo jobCache serverApps
@@ -325,7 +326,8 @@ getInstalledAppByIdLogic appId = do
, appInstalledFullLastBackup = backupTime
, appInstalledFullTorAddress = infoResTorAddress
, appInstalledFullConfiguredRequirements = HM.elems requirements
, appInstalledFullUninstallAlert = manifest >>= AppManifest.appManifestUninstallAlert
, appInstalledFullUninstallAlert = manifest >>= AppManifest.appManifestUninstallAlert
, appInstalledFullRestoreAlert = manifest >>= AppManifest.appManifestRestoreAlert
}
runMaybeT (installing <|> installed) `orThrowM` NotFoundE "appId" (show appId)