mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix: add missing await
This commit is contained in:
parent
502265973c
commit
ecce906c99
1 changed files with 1 additions and 1 deletions
|
|
@ -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}`.");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue