From ecce906c99f0d1d4cb1e49a2381a8bddf392650b Mon Sep 17 00:00:00 2001 From: spiral Date: Tue, 5 Oct 2021 03:17:51 -0400 Subject: [PATCH] fix: add missing await --- PluralKit.Bot/Commands/Admin.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Commands/Admin.cs b/PluralKit.Bot/Commands/Admin.cs index db563da9..5a5fe9fa 100644 --- a/PluralKit.Bot/Commands/Admin.cs +++ b/PluralKit.Bot/Commands/Admin.cs @@ -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}`.");