fix: add missing await

This commit is contained in:
spiral 2021-10-05 03:17:51 -04:00
parent 502265973c
commit ecce906c99
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -77,7 +77,7 @@ namespace PluralKit.Bot
if (!Regex.IsMatch(newHid, "^[a-z]{5}$")) if (!Regex.IsMatch(newHid, "^[a-z]{5}$"))
throw new PKError($"Invalid new group ID `{newHid}`."); throw new PKError($"Invalid new group ID `{newHid}`.");
var existingGroup = _repo.GetGroupByHid(newHid); var existingGroup = await _repo.GetGroupByHid(newHid);
if (existingGroup != null) if (existingGroup != null)
throw new PKError($"Another group already exists with ID `{newHid}`."); throw new PKError($"Another group already exists with ID `{newHid}`.");