Skip to content

Commit

Permalink
fix: why is there console log
Browse files Browse the repository at this point in the history
  • Loading branch information
mansaj committed Jan 14, 2025
1 parent c4025e2 commit e565c89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripts/cronjobs/churnDiscount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async function readCSVFromBucket(
})
.on("error", reject)
.on("end", () => {
console.log(
logger.info(
`CSV file successfully processed. Num of rows: ${results.length}`,
);
resolve(results);
Expand Down Expand Up @@ -119,13 +119,13 @@ async function run() {
}

closeEmailPool();
console.log(
logger.info(
`[${new Date(Date.now()).toISOString()}] Sent [${subscribersToEmail.length}] churn email to relevant subscribers.`,
);
}

async function sendChurnDiscountEmail(subscriber: FxaChurnSubscriber) {
console.log(`sent email to: ${subscriber.userid}`);
logger.info(`sent email to: ${subscriber.userid}`);
// mark as sent
// await markChurnPreventionEmailAsJustSent(parseInt(subscriber.userid, 10))
}

0 comments on commit e565c89

Please sign in to comment.