diff --git a/NumberSearch.Ingest/Program.cs b/NumberSearch.Ingest/Program.cs index 3f3541e1..70483c07 100644 --- a/NumberSearch.Ingest/Program.cs +++ b/NumberSearch.Ingest/Program.cs @@ -52,7 +52,7 @@ public static async Task Main() Stopwatch priorityTimer = new(); Stopwatch dailyTimer = new(); TimeSpan dailyCycle = TimeSpan.FromDays(1); - TimeSpan priortyCycle = TimeSpan.FromMinutes(20); + TimeSpan priorityCycle = TimeSpan.FromMinutes(30); try { @@ -72,7 +72,7 @@ public static async Task Main() var start = DateTime.Now; // Priority Ingest - if (priorityTimer.Elapsed >= priortyCycle) + if (priorityTimer.Elapsed >= priorityCycle) { priorityTimer.Restart(); @@ -81,6 +81,7 @@ public static async Task Main() // Verify that all the Executive numbers are still purchasable for the priority area codes. await Provider.VerifyAddToCartAsync(AreaCode.Priority, "Executive", appConfig.Postgresql, appConfig.BulkVSUsername, appConfig.BulkVSPassword, appConfig.PComNetUsername, appConfig.PComNetPassword); + await Owned.MatchOwnedNumbersToFusionPBXAsync(appConfig.Postgresql, appConfig.FusionPBXUsername, appConfig.FusionPBXPassword); } // Daily Ingest