import { runBackfill } from "./backfill-done-rate-tip-count";
import { runInitialization } from "./initialize-tip-count";
import { runRecalculation } from "./recalculate-total-done-rate";

async function run() {
  await runInitialization();
  await runBackfill();
  await runRecalculation();
}

if (require.main === module) {
  run().catch((err) => {
    console.error("初始化tipCount失败:", err);
    process.exit(1);
  });
}
