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

Function whereOwner

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

Source from the content-addressed store, hash-verified

1163 );
1164
1165 const whereOwner = (owner: Owner, collection: string, key: string): CoreWhere => {
1166 const os = ownerSubject(owner);
1167 return (b: AnyCb) =>
1168 b.and(
1169 b("plugin_id", "=", input.pluginId),
1170 b("collection", "=", collection),
1171 b("key", "=", key),
1172 b("owner", "=", owner),
1173 b("subject", "=", os ? os.subject : ORG_SUBJECT),
1174 );
1175 };
1176
1177 const ownerRank = (owner: Owner): number => readOwners.indexOf(owner);
1178

Callers 3

getForOwnerImplFunction · 0.85
putImplFunction · 0.85
removeImplFunction · 0.85

Calls 1

ownerSubjectFunction · 0.70

Tested by

no test coverage detected