(
params: OrganizationCreditAlert & {
logger: Logger
},
)
| 225 | } |
| 226 | |
| 227 | async function handleFailedConsumptionAlert( |
| 228 | params: OrganizationCreditAlert & { |
| 229 | logger: Logger |
| 230 | }, |
| 231 | ): Promise<void> { |
| 232 | const { organizationId, error, logger } = params |
| 233 | |
| 234 | // TODO: Send immediate notification about failed credit consumption |
| 235 | // TODO: Provide troubleshooting steps |
| 236 | logger.error( |
| 237 | { organizationId, error }, |
| 238 | 'Failed consumption alert sent to organization owners', |
| 239 | ) |
| 240 | } |
| 241 | |
| 242 | async function handleBillingSetupAlert( |
| 243 | params: OrganizationCreditAlert & { |
no outgoing calls
no test coverage detected