From 655d0d6c448f6198788a72aa6066577358596760 Mon Sep 17 00:00:00 2001 From: spiral Date: Wed, 6 Oct 2021 19:49:11 -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 5a5fe9fa..984b0919 100644 --- a/PluralKit.Bot/Commands/Admin.cs +++ b/PluralKit.Bot/Commands/Admin.cs @@ -31,7 +31,7 @@ namespace PluralKit.Bot if (!Regex.IsMatch(newHid, "^[a-z]{5}$")) throw new PKError($"Invalid new system ID `{newHid}`."); - var existingSystem = _repo.GetSystemByHid(newHid); + var existingSystem = await _repo.GetSystemByHid(newHid); if (existingSystem != null) throw new PKError($"Another system already exists with ID `{newHid}`.");