From 2a00c806ae50ac2cae76cbd7be2944f01c4d7cc5 Mon Sep 17 00:00:00 2001 From: emoralesms Date: Wed, 7 Jan 2026 16:09:54 -0300 Subject: [PATCH] fix: add conditions --- Doppler.ReportingApi/Infrastructure/CampaignRepository.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doppler.ReportingApi/Infrastructure/CampaignRepository.cs b/Doppler.ReportingApi/Infrastructure/CampaignRepository.cs index b56a021..bb16d2a 100644 --- a/Doppler.ReportingApi/Infrastructure/CampaignRepository.cs +++ b/Doppler.ReportingApi/Infrastructure/CampaignRepository.cs @@ -103,6 +103,9 @@ JOIN [dbo].[User] U WITH (NOLOCK) AND C.[Status] IN (5,9,10) AND C.[UTCScheduleDate] BETWEEN @startDate AND @endDate AND S.[IdSubscribersStatus] = 5 + AND C.[IdTestCampaign] IS NULL + AND C.[IdScheduledTask] IS NULL + AND C.Active = 1 GROUP BY S.[IdUser] ,S.[IdCampaign]