app/workers/delete_old_bets_worker.rb
# All expired bets older than this, or all disabled bets last
# updated longer ago than this, are deleted
All expired bets older than this, or all disabled bets last
updated longer ago than this, are deleted
All expired bets older than this or all disabled bets last updated longer ago than this are deleted
def old_expired_bets
    Bet.impermanent.where(
      "expiration_date IS NOT NULL AND expiration_date <= ?",
      OLD_BET_THRESHOLD.ago,
    )
  end
def old_expired_bets Bet . impermanent . where ( "expiration_date IS NOT NULL AND expiration_date <= ?" , OLD_BET_THRESHOLD . ago , ) end
All expired bets older than this, or all disabled bets last
updated longer ago than this, are deleted
All expired bets older than this or all disabled bets last updated longer ago than this are deleted