fix: add missing await
This commit is contained in:
parent
92c1b4de56
commit
655d0d6c44
@ -31,7 +31,7 @@ namespace PluralKit.Bot
|
|||||||
if (!Regex.IsMatch(newHid, "^[a-z]{5}$"))
|
if (!Regex.IsMatch(newHid, "^[a-z]{5}$"))
|
||||||
throw new PKError($"Invalid new system ID `{newHid}`.");
|
throw new PKError($"Invalid new system ID `{newHid}`.");
|
||||||
|
|
||||||
var existingSystem = _repo.GetSystemByHid(newHid);
|
var existingSystem = await _repo.GetSystemByHid(newHid);
|
||||||
if (existingSystem != null)
|
if (existingSystem != null)
|
||||||
throw new PKError($"Another system already exists with ID `{newHid}`.");
|
throw new PKError($"Another system already exists with ID `{newHid}`.");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user