Skip to content

Commit 47349e1

Browse files
Use Infrastructure IScopeProvider
1 parent e9b680f commit 47349e1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Umbraco.Commerce.Checkout/Pipeline/Tasks/CreateUmbracoCommerceCheckoutNodesTask.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
using Umbraco.Commerce.Common.Pipelines;
2-
using Umbraco.Commerce.Common.Pipelines.Tasks;
3-
using System.Reflection;
4-
using System.Linq;
51
using Umbraco.Cms.Core.Models;
6-
using Umbraco.Cms.Core.Scoping;
72
using Umbraco.Cms.Core.Services;
3+
using Umbraco.Cms.Infrastructure.Scoping;
4+
using Umbraco.Commerce.Common.Pipelines;
5+
using Umbraco.Commerce.Common.Pipelines.Tasks;
86

97
namespace Umbraco.Commerce.Checkout.Pipeline.Tasks
108
{
@@ -33,7 +31,7 @@ public override PipelineResult<InstallPipelineContext> Execute(PipelineArgs<Inst
3331
// Check to see if the checkout node already exists
3432
var filter = scope.SqlContext.Query<IContent>().Where(x => x.ContentTypeId == uccCheckoutPageContenType.Id);
3533
var childNodes = _contentService.GetPagedChildren(args.Model.SiteRootNodeId, 1, 1, out long totalRecords, filter);
36-
34+
3735
if (totalRecords == 0)
3836
{
3937
// Create the checkout page

0 commit comments

Comments
 (0)