From 67700165852a6821bdd9a18444c8cbe21f354f9e Mon Sep 17 00:00:00 2001 From: Thomas Ryan Date: Wed, 26 Jul 2023 22:00:02 -0700 Subject: [PATCH] Bumped the FusionPBX routing data ingest from Daily to Priority in support of #366. --- NumberSearch.Ingest/Program.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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