Skip to content

Commit

Permalink
feat: enable schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ksavosteev committed Jan 6, 2025
1 parent 3dc65f9 commit 38cfe76
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/VirtoCommerce.ProfileExperienceApiModule.Web/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
using VirtoCommerce.ProfileExperienceApiModule.Data.Validators;
using VirtoCommerce.TaxModule.Core.Model;
using VirtoCommerce.Xapi.Core.Extensions;
using VirtoCommerce.Xapi.Core.Infrastructure;
using VirtoCommerce.Xapi.Core.Pipelines;

namespace VirtoCommerce.ProfileExperienceApiModule.Web
Expand All @@ -37,8 +38,7 @@ public void Initialize(IServiceCollection serviceCollection)
builder.AddSchema(serviceCollection, typeof(AssemblyMarker));
});

// disable scoped schema
//serviceCollection.AddSingleton<ScopedSchemaFactory<AssemblyMarker>>();
serviceCollection.AddSingleton<ScopedSchemaFactory<AssemblyMarker>>();

serviceCollection.AddSingleton<IMemberAggregateFactory, MemberAggregateFactory>();
serviceCollection.AddTransient<NewContactValidator>();
Expand Down Expand Up @@ -79,8 +79,7 @@ public void PostInitialize(IApplicationBuilder appBuilder)
var permissionsRegistrar = appBuilder.ApplicationServices.GetRequiredService<IPermissionsRegistrar>();
permissionsRegistrar.RegisterPermissions(ModuleInfo.Id, "XAPI", ModuleConstants.Security.Permissions.AllPermissions);

// disable scoped schema
//appBuilder.UseScopedSchema<AssemblyMarker>("profile");
appBuilder.UseScopedSchema<AssemblyMarker>("profile");
}

public void Uninstall()
Expand Down

0 comments on commit 38cfe76

Please sign in to comment.