mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 16:11:05 +01:00
Fix false positive failure when creating TGS user
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user