diff --git a/src/Tgstation.Server.Host/Database/DatabaseContextFactory.cs b/src/Tgstation.Server.Host/Database/DatabaseContextFactory.cs index 41f2da0040..7f4bc19049 100644 --- a/src/Tgstation.Server.Host/Database/DatabaseContextFactory.cs +++ b/src/Tgstation.Server.Host/Database/DatabaseContextFactory.cs @@ -31,7 +31,7 @@ namespace Tgstation.Server.Host.Database if (operation == null) throw new ArgumentNullException(nameof(operation)); - using var scope = scopeFactory.CreateScope(); + await using var scope = scopeFactory.CreateAsyncScope(); await operation(scope.ServiceProvider.GetRequiredService()); } }