import {
  accrueDailyInvestmentPoints,
  expireDuePoints,
} from "$helpers/club/club.helper.js";

export const RUN_CLUB_ACCRUAL = async () => {
  const createdTransactions = await accrueDailyInvestmentPoints();
  const expiredTransactions = await expireDuePoints();

  console.log("[club] accrual completed", {
    createdTransactions,
    expiredTransactions,
  });

  return {
    createdTransactions,
    expiredTransactions,
  };
};
