remove temporary logging from auto-topup webhook flow
This commit is contained in:
@@ -91,10 +91,6 @@ export const autoTopup = async ({
|
||||
const isInvoiceMode = Boolean(autoTopupContext.invoiceMode);
|
||||
const invoiceStatus = billingResult.stripe?.stripeInvoice?.status;
|
||||
|
||||
logger.info(
|
||||
`[autoTopup] post-execute gate: isInvoiceMode=${isInvoiceMode}, invoiceStatus=${invoiceStatus}, customer=${customerId}`,
|
||||
);
|
||||
|
||||
if (!isInvoiceMode && invoiceStatus !== "paid") {
|
||||
await voidStripeInvoiceIfOpen({
|
||||
ctx,
|
||||
|
||||
@@ -71,10 +71,6 @@ const sendAutoTopupSucceededWebhookUnsafe = async ({
|
||||
autoTopupContext: AutoTopupContext;
|
||||
billingResult: BillingResult;
|
||||
}) => {
|
||||
ctx.logger.info(
|
||||
`[sendAutoTopupSucceededWebhook] entry for customer ${autoTopupContext.fullCustomer.id ?? autoTopupContext.fullCustomer.internal_id}, feature ${autoTopupContext.autoTopupConfig.feature_id}`,
|
||||
);
|
||||
|
||||
const invoice = getInvoicePayload({
|
||||
billingResult,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user