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]