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

Function run

apps/cloud/src/auth/workos-mirror-store.ts:1050–1059  ·  view source on GitHub ↗
(op: string, fn: () => Promise<A>)

Source from the content-addressed store, hash-verified

1048 */
1049export const makeWorkOsMirrorStore = (db: DrizzleDb): WorkOsMirrorShape => {
1050 const run = <A>(op: string, fn: () => Promise<A>) =>
1051 withServiceLogging(
1052 `workos_mirror.${op}`,
1053 (failure) =>
1054 new WorkOsMirrorError({
1055 operation: op,
1056 reason: userStoreReasonFromCause(failure),
1057 }),
1058 tryPromiseService(fn),
1059 );
1060
1061 const writes = makeWrites(db);
1062

Callers 2

makeWorkOsMirrorStoreFunction · 0.70
diagnoseWedgeFunction · 0.50

Calls 3

withServiceLoggingFunction · 0.90
userStoreReasonFromCauseFunction · 0.90
tryPromiseServiceFunction · 0.90

Tested by 1

diagnoseWedgeFunction · 0.40