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

Function whereOwner

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

Source from the content-addressed store, hash-verified

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

Callers 3

getForOwnerImplFunction · 0.85
putImplFunction · 0.85
removeImplFunction · 0.85

Calls 1

ownerSubjectFunction · 0.70

Tested by

no test coverage detected