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

Function ensureCustomer

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

Source from the content-addressed store, hash-verified

177 }).pipe(Effect.withSpan(`autumn.${fn.name || "use"}`));
178
179 const ensureCustomer = (organizationId: string) =>
180 Effect.asVoid(use((c) => c.customers.getOrCreate({ customerId: organizationId })));
181
182 // autumn-js 1.2.8 has no read-only customer call, so `customers.get` goes
183 // over HTTP with the SDK's secret, server and API version.

Callers 1

withProvisionedCustomerFunction · 0.85

Calls 1

useFunction · 0.70

Tested by

no test coverage detected