Skip to content

Commit e533278

Browse files
authored
Merge pull request #27 from rasmusjp/rasmusjp-patch-1
Add missing usings, remove extension method usage
2 parents 9140c1a + 2cc4d6c commit e533278

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Our.Umbraco.GraphQL/Types/PublishedContentQuery.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
using System;
12
using System.Collections.Generic;
23
using GraphQL.Types;
4+
using Umbraco.Core.Configuration;
5+
using Umbraco.Web.Routing;
36

47
namespace Our.Umbraco.GraphQL.Types
58
{
@@ -24,7 +27,7 @@ public PublishedContentQuery(IEnumerable<IGraphType> documentGraphTypes)
2427
.Argument<NonNullGraphType<StringGraphType>>("url", "The relative content url")
2528
.Resolve(context =>
2629
{
27-
var userContext = context.UmbracoUserContext();
30+
var userContext = (UmbracoGraphQLContext)context.UserContext;
2831
var url = context.GetArgument<string>("url");
2932

3033
var pcr = new PublishedContentRequest(

0 commit comments

Comments
 (0)