Skip to content

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

better logs

Gergő Móricze716ef86802d
diff --git a/apps/api/src/services/billing/auto_charge.ts b/apps/api/src/services/billing/auto_charge.ts
index d5b319cb3..274d4240b 100644
--- a/apps/api/src/services/billing/auto_charge.ts
+++ b/apps/api/src/services/billing/auto_charge.ts
@@ -126,7 +126,12 @@ async function _autoChargeScale(
if (priceError || !price) {
logger.error("Error fetching price", {
error: priceError,
- priceId: chunk.price_associated_auto_recharge_price_id,
+ priceId:
+ chunk.price_associated_auto_recharge_price_id === undefined
+ ? "undefined"
+ : JSON.stringify(
+ chunk.price_associated_auto_recharge_price_id,
+ ),
});
return {
success: false,