From ea68f1f9b39830860e876da224d5606378bf0599 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Thu, 4 Dec 2014 21:16:32 -0800 Subject: [PATCH] #20728: Optimizing query. --- src/Orchard.Web/Modules/Orchard.Comments/Migrations.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Migrations.cs b/src/Orchard.Web/Modules/Orchard.Comments/Migrations.cs index e3b7bfd42..acfacf024 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Migrations.cs +++ b/src/Orchard.Web/Modules/Orchard.Comments/Migrations.cs @@ -181,7 +181,7 @@ namespace Orchard.Comments { ); // populate the CommentsPartRecord.CommentsCount property - foreach (var commentsPart in _contentManager.Query().List()) { + foreach (var commentsPart in _contentManager.Query().List()) { _commentService.ProcessCommentsCount(commentsPart.Id); }