From 2247962677836c45028ba94cf96d88983c7ba30f Mon Sep 17 00:00:00 2001 From: Eduardo Lopes <155753879+eduardolopesx03@users.noreply.github.com> Date: Tue, 27 Jan 2026 13:25:17 -0300 Subject: [PATCH] Fix Vigencia import delete order --- Controllers/LinesController.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Controllers/LinesController.cs b/Controllers/LinesController.cs index a14d2a5..ec3b935 100644 --- a/Controllers/LinesController.cs +++ b/Controllers/LinesController.cs @@ -1176,6 +1176,9 @@ namespace line_gestao_api.Controllers var startRow = headerRow.RowNumber() + 1; var lastRow = ws.LastRowUsed()?.RowNumber() ?? startRow; + await _db.Notifications + .Where(n => n.VigenciaLineId != null) + .ExecuteDeleteAsync(); await _db.VigenciaLines.ExecuteDeleteAsync(); var buffer = new List(600);