Update TimedTasks with config update

- Oops, Missed that.
This commit is contained in:
A-c0rN committed 2025-05-14 09:10:35 -05:00
1 parent 348236be18
commit d53d64a78d
1 file changed
+2 -2
+2 -2
View File
@@ -18,7 +18,7 @@ public class TimedTasks
/// <param name="sender">UdpSender, prefer priority port</param>
public static async Task CheckForAlerts(string[] locations, UdpSender sender, int checkInterval)
{
if (Config.config.UseNationalLocations || !Config.config.GetAlerts)
if (Config.config.LocationConfig.UseNationalLocations || !Config.config.GetAlerts)
{
Log.Debug("Disabling alert generation.");
return;
@@ -50,7 +50,7 @@ public class TimedTasks
/// </summary>
public static async Task ClearExpiredAlerts()
{
if (Config.config.UseNationalLocations || !Config.config.GetAlerts)
if (Config.config.LocationConfig.UseNationalLocations || !Config.config.GetAlerts)
{
return;
}