This commit is contained in:
2020-07-09 23:54:29 +00:00
parent 7b10dd51a7
commit f197ee4896
4 changed files with 127 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ namespace AyaNova.Util
internal static bool BOOTING { get; set; }
internal static GlobalOpsBackupSettings Backup { get; set; }
internal static GlobalOpsNotificationSettings Notify {get;set;}
internal static DateTime NextBackup { get; set; }
/// <summary>
/// Populate and / or create the settings
@@ -32,6 +33,13 @@ namespace AyaNova.Util
}
NextBackup = FileUtil.MostRecentAutomatedBackupFileDate();
SetNextBackup();
Notify=ct.GlobalOpsNotificationSettings.FirstOrDefault(z=>z.Id==1);
if(Notify==null)
{
Notify=new GlobalOpsNotificationSettings();
}
}
internal static void SetNextBackup()