diff --git a/src/VirtoCommerce.Xapi.Core/Queries/SlugInfoQuery.cs b/src/VirtoCommerce.Xapi.Core/Queries/SlugInfoQuery.cs index c6842e0..e502450 100644 --- a/src/VirtoCommerce.Xapi.Core/Queries/SlugInfoQuery.cs +++ b/src/VirtoCommerce.Xapi.Core/Queries/SlugInfoQuery.cs @@ -3,6 +3,7 @@ using GraphQL; using GraphQL.Types; using VirtoCommerce.Xapi.Core.BaseQueries; +using VirtoCommerce.Xapi.Core.Extensions; using VirtoCommerce.Xapi.Core.Models; namespace VirtoCommerce.Xapi.Core.Queries @@ -39,7 +40,7 @@ public override void Map(IResolveFieldContext context) #pragma warning restore VC0008 Permalink = context.GetArgument(nameof(Permalink)); StoreId = context.GetArgument(nameof(StoreId)); - UserId = context.GetArgument(nameof(UserId)); + UserId = context.GetCurrentUserId(); CultureName = context.GetArgument(nameof(CultureName)); } } diff --git a/src/VirtoCommerce.Xapi.Core/VirtoCommerce.Xapi.Core.csproj b/src/VirtoCommerce.Xapi.Core/VirtoCommerce.Xapi.Core.csproj index 5d8faa3..739aa56 100644 --- a/src/VirtoCommerce.Xapi.Core/VirtoCommerce.Xapi.Core.csproj +++ b/src/VirtoCommerce.Xapi.Core/VirtoCommerce.Xapi.Core.csproj @@ -30,10 +30,16 @@ - + + + + + + + \ No newline at end of file diff --git a/src/VirtoCommerce.Xapi.Data/Queries/SlugInfoQueryHandler.cs b/src/VirtoCommerce.Xapi.Data/Queries/SlugInfoQueryHandler.cs index 5cb7ab2..c9f532c 100644 --- a/src/VirtoCommerce.Xapi.Data/Queries/SlugInfoQueryHandler.cs +++ b/src/VirtoCommerce.Xapi.Data/Queries/SlugInfoQueryHandler.cs @@ -49,6 +49,7 @@ public async Task Handle(SlugInfoQuery request, CancellationTo criteria.LanguageCode = currentCulture; criteria.Permalink = request.Permalink; criteria.Slug = lastSegment; + criteria.UserId = request.UserId; result.EntityInfo = await GetBestMatchingSeoInfo(criteria, store); diff --git a/src/VirtoCommerce.Xapi.Data/VirtoCommerce.Xapi.Data.csproj b/src/VirtoCommerce.Xapi.Data/VirtoCommerce.Xapi.Data.csproj index 09c30d5..f0a7f40 100644 --- a/src/VirtoCommerce.Xapi.Data/VirtoCommerce.Xapi.Data.csproj +++ b/src/VirtoCommerce.Xapi.Data/VirtoCommerce.Xapi.Data.csproj @@ -10,7 +10,7 @@ - + diff --git a/src/VirtoCommerce.Xapi.Web/module.manifest b/src/VirtoCommerce.Xapi.Web/module.manifest index 90a176f..332536a 100644 --- a/src/VirtoCommerce.Xapi.Web/module.manifest +++ b/src/VirtoCommerce.Xapi.Web/module.manifest @@ -6,7 +6,7 @@ 3.861.0 - + diff --git a/tests/VirtoCommerce.Xapi.Tests/VirtoCommerce.Xapi.Tests.csproj b/tests/VirtoCommerce.Xapi.Tests/VirtoCommerce.Xapi.Tests.csproj index 33b1380..f3afcb7 100644 --- a/tests/VirtoCommerce.Xapi.Tests/VirtoCommerce.Xapi.Tests.csproj +++ b/tests/VirtoCommerce.Xapi.Tests/VirtoCommerce.Xapi.Tests.csproj @@ -12,10 +12,10 @@ runtime; build; native; contentfiles; analyzers; buildtransitive all - + - +