Skip to main content
February 19, 20261.0.37v1.0.37RSS

v1.0.37 — [Intelligence] CRM health scoring cron also has empty WHERE clause — same bug as churn cron

Release Notes

Current behavior: crmHealthScoringCron has identical empty and() condition: 'We exclude cancelled manually in logic but include them for record-keeping'. The comment says they're excluded in logic but the code scores them and calls scoreAndPersistHealth for cancelled customers. Expected behavior: Skip cancelled customers in the WHERE clause, not in downstream logic. File: N/A Recommendation: Same fix: add .where(sql${customers.status} != 'cancelled').

v1.0.37 — [Intelligence] CRM health scoring cron also has empty WHERE clause — same bug as churn cron (1.0.37) — SaaS Factory Changelog