don't send user info updates if it's not the secondary server

This commit is contained in:
Stanley Dimant
2022-09-10 17:07:59 +02:00
parent 721f09631c
commit 2f52d0ba59

View File

@@ -51,7 +51,7 @@ public class SystemInfoService : IHostedService, IDisposable
var secondaryServer = Environment.GetEnvironmentVariable("SECONDARY_SERVER"); var secondaryServer = Environment.GetEnvironmentVariable("SECONDARY_SERVER");
if (secondaryServer == "1") if (secondaryServer == "0")
{ {
using var scope = _services.CreateScope(); using var scope = _services.CreateScope();
using var db = scope.ServiceProvider.GetService<MareDbContext>()!; using var db = scope.ServiceProvider.GetService<MareDbContext>()!;