fix(api): use cache for switch member lookups

This commit is contained in:
spiral 2023-02-06 19:33:54 -05:00
parent 0a58c9a9ed
commit e6d8c44d72

View File

@ -95,7 +95,7 @@ public class SwitchControllerV2: PKControllerBase
foreach (var memberRef in data.Members) foreach (var memberRef in data.Members)
{ {
var member = await ResolveMember(memberRef); var member = await ResolveMember(memberRef, cache: true);
if (member == null) if (member == null)
throw Errors.MemberNotFoundWithRef(memberRef); throw Errors.MemberNotFoundWithRef(memberRef);
if (member.System != system.Id) if (member.System != system.Id)