Skip to content

Commit

Permalink
fix(credit_billing): logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mogery committed Jan 20, 2025
1 parent ae0d705 commit 2d4f4de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/api/src/services/billing/credit_billing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2d4f4de

Please sign in to comment.