Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(credit_billing): logs

Móricz Gergő2d4f4de0abd5
diff --git a/apps/api/src/services/billing/credit_billing.ts b/apps/api/src/services/billing/credit_billing.ts
index 8189161b3..7ea822e12 100644
--- a/apps/api/src/services/billing/credit_billing.ts
+++ b/apps/api/src/services/billing/credit_billing.ts
@@ -43,15 +43,15 @@ export async function supaBillTeam(
const _logger = (__logger ?? logger).child({
module: "credit_billing",
method: "supaBillTeam",
+ teamId: team_id,
+ subscriptionId: subscription_id,
+ credits,
});
if (team_id === "preview") {
return { success: true, message: "Preview team, no credits used" };
}
- _logger.info(`Billing team ${team_id} for ${credits} credits`, {
- team_id,
- credits,
- });
+ _logger.info(`Billing team ${team_id} for ${credits} credits`);
const { data, error } = await supabase_service.rpc("bill_team_w_extract_3", {
_team_id: team_id,