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

Function whereOwner

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

Source from the content-addressed store, hash-verified

1511 );
1512
1513 const whereOwner = (owner: Owner, collection: string, key: string): CoreWhere => {
1514 const os = ownerSubject(owner);
1515 return (b: AnyCb) =>
1516 b.and(
1517 b("plugin_id", "=", input.pluginId),
1518 b("collection", "=", collection),
1519 b("key", "=", key),
1520 b("owner", "=", owner),
1521 b("subject", "=", os ? os.subject : ORG_SUBJECT),
1522 );
1523 };
1524
1525 const ownerRank = (owner: Owner): number => readOwners.indexOf(owner);
1526

Callers 3

getForOwnerImplFunction · 0.85
putImplFunction · 0.85
removeImplFunction · 0.85

Calls 1

ownerSubjectFunction · 0.70

Tested by

no test coverage detected