Skip to content

Commit

Permalink
Fix - Ne pas lister les producteurs sans produits dans les zones
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmugnier committed Nov 10, 2020
1 parent e7ac5b4 commit c2be790
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public async Task<Result<bool>> Handle(UpdateZonesProgressCommand request, Cance
foreach (var departmentId in region.DepartmentIds)
{
var producerPerDepartment = producersPerDepartments.First(p => p.DepartmentId == departmentId);
producersCount += (producerPerDepartment.Created ?? 0);
producersCount += (producerPerDepartment.Active ?? 0);
var storePerDepartment = storesPerDepartments.First(p => p.DepartmentId == departmentId);
storesCount += (storePerDepartment.Created ?? 0);
Expand Down

0 comments on commit c2be790

Please sign in to comment.