Skip to content

Commit

Permalink
Bumped the FusionPBX routing data ingest from Daily to Priority in su…
Browse files Browse the repository at this point in the history
…pport of #366.
  • Loading branch information
uncheckederror committed Jul 27, 2023
1 parent 58b014e commit 6770016
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions NumberSearch.Ingest/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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();

Expand All @@ -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
Expand Down

0 comments on commit 6770016

Please sign in to comment.