diff --git a/Pipefy.csproj b/Pipefy.csproj index 41c67b4..b8eb3af 100644 --- a/Pipefy.csproj +++ b/Pipefy.csproj @@ -10,17 +10,17 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all - - - - - - + + + + + + diff --git a/Program.cs b/Program.cs index 188fc86..d83d412 100644 --- a/Program.cs +++ b/Program.cs @@ -16,7 +16,7 @@ class Program { endTime = date; } - static async Task Main(string[] args) + static async Task Main() { // Setup DI var serviceCollection = new ServiceCollection(); @@ -59,7 +59,7 @@ class Program await pipefyApi.CreateRecordsAsync(AppSettings.PIPEFY_TABLE_ID, recordsMissingInJson); int maxCId = recordsMissingInJson.OrderByDescending(s => s.c_digo_smart!.Length).First().c_digo_smart!.Length; int maxCNome = recordsMissingInJson.OrderByDescending(s => s.nome_da_empresa!.Length).First().nome_da_empresa!.Length; - int maxCMod = recordsMissingInJson.OrderByDescending(s => s.modalidade!.Length).First().modalidade!.Length; + int maxCMod = recordsMissingInJson.OrderByDescending(s => (s.modalidade ?? "").Length).First().modalidade!.Length; int maxCGestao = recordsMissingInJson.OrderByDescending(s => s.gestores!.Length).First().gestores!.Length; foreach (var record in recordsMissingInJson) { @@ -92,6 +92,6 @@ class Program } private static void OnTimerElapsed(object sender, ElapsedEventArgs e) { - Console.Write($"\rEncerrando em {endTime.Subtract(e.SignalTime).Seconds.ToString()}"); + Console.Write($"\rEncerrando em {endTime.Subtract(e.SignalTime).Seconds}"); } } \ No newline at end of file