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

Function whereOwner

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

Source from the content-addressed store, hash-verified

1544 );
1545
1546 const whereOwner = (owner: Owner, collection: string, key: string): CoreWhere => {
1547 const os = ownerSubject(owner);
1548 return (b: AnyCb) =>
1549 b.and(
1550 b("plugin_id", "=", input.pluginId),
1551 b("collection", "=", collection),
1552 b("key", "=", key),
1553 b("owner", "=", owner),
1554 b("subject", "=", os ? os.subject : ORG_SUBJECT),
1555 );
1556 };
1557
1558 const ownerRank = (owner: Owner): number => readOwners.indexOf(owner);
1559

Callers 3

getForOwnerImplFunction · 0.85
putImplFunction · 0.85
removeImplFunction · 0.85

Calls 1

ownerSubjectFunction · 0.70

Tested by

no test coverage detected