mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 12:09:03 +08:00
fix(credit_billing): logs
This commit is contained in:
parent
ae0d705f5d
commit
2d4f4de0ab
@ -43,15 +43,15 @@ export async function supaBillTeam(
|
|||||||
const _logger = (__logger ?? logger).child({
|
const _logger = (__logger ?? logger).child({
|
||||||
module: "credit_billing",
|
module: "credit_billing",
|
||||||
method: "supaBillTeam",
|
method: "supaBillTeam",
|
||||||
|
teamId: team_id,
|
||||||
|
subscriptionId: subscription_id,
|
||||||
|
credits,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (team_id === "preview") {
|
if (team_id === "preview") {
|
||||||
return { success: true, message: "Preview team, no credits used" };
|
return { success: true, message: "Preview team, no credits used" };
|
||||||
}
|
}
|
||||||
_logger.info(`Billing team ${team_id} for ${credits} credits`, {
|
_logger.info(`Billing team ${team_id} for ${credits} credits`);
|
||||||
team_id,
|
|
||||||
credits,
|
|
||||||
});
|
|
||||||
|
|
||||||
const { data, error } = await supabase_service.rpc("bill_team_w_extract_3", {
|
const { data, error } = await supabase_service.rpc("bill_team_w_extract_3", {
|
||||||
_team_id: team_id,
|
_team_id: team_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user