Skip to content

Commit 4e3c46e

Browse files
committed
fix build
1 parent cd2f92a commit 4e3c46e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/JsonApiDotNetCore/Extensions/IServiceCollectionExtensions.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,18 @@ public static IServiceCollection AddJsonApi(
5959
IMvcCoreBuilder mvcBuilder,
6060
Action<ServiceDiscoveryFacade> autoDiscover = null)
6161
{
62-
var options = new JsonApiOptions();
63-
configureOptions(options);
62+
var config = new JsonApiOptions();
63+
configureOptions(config);
6464

6565
if(autoDiscover != null)
6666
{
67-
var facade = new ServiceDiscoveryFacade(services, options.ContextGraphBuilder);
67+
var facade = new ServiceDiscoveryFacade(services, config.ContextGraphBuilder);
6868
autoDiscover(facade);
6969
}
7070

7171
mvcBuilder.AddMvcOptions(opt => AddMvcOptions(opt, config));
7272

73-
AddJsonApiInternals(services, options);
73+
AddJsonApiInternals(services, config);
7474
return services;
7575
}
7676

0 commit comments

Comments
 (0)