Fix false positive failure when creating TGS user

This commit is contained in:
Jordan Brown
2020-07-13 13:27:04 -04:00
parent 466df416de
commit 2938c128ea
@@ -249,6 +249,7 @@ namespace Tgstation.Server.Host.Database
.Users
.AsQueryable()
.Where(x => x.CanonicalName == User.CanonicalizeName(Api.Models.User.AdminName))
.Include(x => x.CreatedBy)
.FirstOrDefaultAsync(cancellationToken)
.ConfigureAwait(false);
if (admin == default)