Use more performant LINQ

This commit is contained in:
Dominion
2023-04-03 01:49:44 -04:00
parent fb62e927ee
commit 30d2e48200
@@ -298,7 +298,7 @@ namespace Tgstation.Server.Host.Database
else
logger.LogDebug("No migrations to apply");
wasEmpty |= (await Users.AsQueryable().CountAsync(cancellationToken)) == 0;
wasEmpty |= !await Users.AsQueryable().AnyAsync(cancellationToken);
return wasEmpty;
}