Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Nov 9, 2023
1 parent bf7ebcc commit f022d28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/BUTR.Site.NexusMods.Server/Contexts/BaseAppDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using BUTR.Site.NexusMods.Server.Options;

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Diagnostics;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.Extensions.Options;

Expand Down Expand Up @@ -148,6 +149,7 @@ protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
.Build();

optionsBuilder
.ConfigureWarnings(x => x.Ignore(CoreEventId.ManyServiceProvidersCreatedWarning))
.ReplaceService<IModelCacheKeyFactory, TenantModelCacheKeyFactory>()
.UseNpgsql(dataSource, opt =>
{
Expand Down

0 comments on commit f022d28

Please sign in to comment.