Skip to content

Commit

Permalink
Update Configure.ApiKeys.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Jun 3, 2024
1 parent 2ce4818 commit abe913a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MyApp/Configure.ApiKeys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public void Configure(IWebHostBuilder builder) => builder
})
.ConfigureAppHost(appHost =>
{
var apiKeysFeature = appHost.GetPlugin<ApiKeysFeature>();
using var db = appHost.Resolve<IDbConnectionFactory>().Open();
var apiKeysFeature = appHost.GetPlugin<ApiKeysFeature>();
apiKeysFeature.InitSchema(db);

// Optional: Create API Key for specified Users on Startup
Expand Down

0 comments on commit abe913a

Please sign in to comment.