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

Function ensureCustomer

apps/cloud/src/extensions/billing/service.ts:134–135  ·  view source on GitHub ↗
(organizationId: string)

Source from the content-addressed store, hash-verified

132 }).pipe(Effect.withSpan(`autumn.${fn.name || "use"}`));
133
134 const ensureCustomer = (organizationId: string) =>
135 Effect.asVoid(use((c) => c.customers.getOrCreate({ customerId: organizationId })));
136
137 /**
138 * Run `operation`; if Autumn answers "no such customer", provision the

Callers 1

withProvisionedCustomerFunction · 0.85

Calls 1

useFunction · 0.70

Tested by

no test coverage detected