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

Function ensureCustomer

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

Source from the content-addressed store, hash-verified

143 }).pipe(Effect.withSpan(`autumn.${fn.name || "use"}`));
144
145 const ensureCustomer = (organizationId: string) =>
146 Effect.asVoid(use((c) => c.customers.getOrCreate({ customerId: organizationId })));
147
148 /**
149 * 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