From d5c67ed2373030ab85f2ff012325e3dbec341128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Sa=CC=88rkikoski?= Date: Tue, 21 Nov 2023 09:33:47 +0200 Subject: [PATCH] CSCTTV-3607 fundingcall must have is_open_call=true --- aspnetcore/src/Repositories/FundingCallIndexRepository.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/src/Repositories/FundingCallIndexRepository.cs b/aspnetcore/src/Repositories/FundingCallIndexRepository.cs index c5b1d97..34564db 100644 --- a/aspnetcore/src/Repositories/FundingCallIndexRepository.cs +++ b/aspnetcore/src/Repositories/FundingCallIndexRepository.cs @@ -25,7 +25,7 @@ protected override IQueryable GetAll() return _context.DimCallProgrammes .AsNoTracking() .AsSplitQuery() - .Where(callProgramme => callProgramme.Id != -1 && callProgramme.DimOrganizations.Count > 0) + .Where(callProgramme => callProgramme.Id != -1 && callProgramme.DimOrganizations.Count > 0 && callProgramme.IsOpenCall==true) .ProjectTo(_mapper.ConfigurationProvider); } @@ -37,7 +37,7 @@ protected override IQueryable GetChunk(int skipAmount, int takeAmou .Take(takeAmount) .AsNoTracking() .AsSplitQuery() - .Where(callProgramme => callProgramme.Id != -1 && callProgramme.DimOrganizations.Count > 0) + .Where(callProgramme => callProgramme.Id != -1 && callProgramme.DimOrganizations.Count > 0 && callProgramme.IsOpenCall==true) .ProjectTo(_mapper.ConfigurationProvider); }