MCPcopy Create free account
hub / github.com/CodebuffAI/codebuff / handleFailedConsumptionAlert

Function handleFailedConsumptionAlert

packages/billing/src/org-monitoring.ts:227–240  ·  view source on GitHub ↗
(
  params: OrganizationCreditAlert & {
    logger: Logger
  },
)

Source from the content-addressed store, hash-verified

225}
226
227async 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
242async function handleBillingSetupAlert(
243 params: OrganizationCreditAlert & {

Callers 1

sendOrganizationAlertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected