(organizationId: string)
| 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. |
no test coverage detected