MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / whereOwner

Function whereOwner

packages/core/sdk/src/executor.ts:928–938  ·  view source on GitHub ↗
(owner: Owner, collection: string, key: string)

Source from the content-addressed store, hash-verified

926 );
927
928 const whereOwner = (owner: Owner, collection: string, key: string): CoreWhere => {
929 const os = ownerSubject(owner);
930 return (b: AnyCb) =>
931 b.and(
932 b("plugin_id", "=", input.pluginId),
933 b("collection", "=", collection),
934 b("key", "=", key),
935 b("owner", "=", owner),
936 b("subject", "=", os ? os.subject : ORG_SUBJECT),
937 );
938 };
939
940 const ownerRank = (owner: Owner): number => readOwners.indexOf(owner);
941

Callers 3

getForOwnerImplFunction · 0.85
putImplFunction · 0.85
removeImplFunction · 0.85

Calls 1

ownerSubjectFunction · 0.70

Tested by

no test coverage detected