fix: add missing await
This commit is contained in:
parent
502265973c
commit
ecce906c99
@ -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}`.");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user