fix: add missing await

This commit is contained in:
spiral
2021-10-05 03:17:51 -04:00
parent 502265973c
commit ecce906c99

View File

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