diff --git a/PluralKit.API/Controllers/PKControllerBase.cs b/PluralKit.API/Controllers/PKControllerBase.cs index cd3db2f5..50172df7 100644 --- a/PluralKit.API/Controllers/PKControllerBase.cs +++ b/PluralKit.API/Controllers/PKControllerBase.cs @@ -49,7 +49,7 @@ namespace PluralKit.API if (_shortIdRegex.IsMatch(systemRef)) return _repo.GetSystemByHid(systemRef); - return null; + return Task.FromResult(null); } protected Task ResolveMember(string memberRef) @@ -60,7 +60,7 @@ namespace PluralKit.API if (_shortIdRegex.IsMatch(memberRef)) return _repo.GetMemberByHid(memberRef); - return null; + return Task.FromResult(null); } protected Task ResolveGroup(string groupRef) @@ -71,7 +71,7 @@ namespace PluralKit.API if (_shortIdRegex.IsMatch(groupRef)) return _repo.GetGroupByHid(groupRef); - return null; + return Task.FromResult(null); } public LookupContext ContextFor(PKSystem system)