Skip to content

Commit

Permalink
remove region
Browse files Browse the repository at this point in the history
  • Loading branch information
basilkot committed Jun 11, 2024
1 parent 7a7a7e6 commit 03d3c6e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/VirtoCommerce.CoreModule.Core/Seo/CompositeSeoResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ public CompositeSeoResolver(IEnumerable<ISeoResolver> resolvers, CompositeSeoByS
_seoBySlugResolver = seoBySlugResolver;
}

#region ISeoResolver members
public async Task<IList<SeoInfo>> FindSeoAsync(SeoSearchCriteria criteria)
{
var tasks = _resolvers.Select(x => x.FindSeoAsync(criteria)).ToArray();
var result = (await Task.WhenAll(tasks)).SelectMany(x => x).Where(x => x.ObjectId != null && x.ObjectType != null).Distinct();
var fallbackResults = await _seoBySlugResolver.FindSeoBySlugAsync(criteria.Slug);
return result.Union(fallbackResults).ToList();
}
#endregion
}

0 comments on commit 03d3c6e

Please sign in to comment.