diff --git a/Webhook 4docs/Program.cs b/Webhook 4docs/Program.cs index 10a65fd..1a55476 100644 --- a/Webhook 4docs/Program.cs +++ b/Webhook 4docs/Program.cs @@ -118,7 +118,10 @@ namespace Webhook_4docs JsonElement DadosJson = JsonDocument.Parse(root.ToString()).RootElement; - if (root.Get("documentType")?.ToString().ToLower() != "nota_fiscal") { return; } + if (root.Get("documentType").ToString().ToLower() != string.Empty) + { + if (root.Get("documentType")?.ToString().ToLower() != "nota_fiscal") { return; } + } Fatura fatura = new(fatura_ID, JsonBody); bool completed = false;