const cron = require('node-cron');
const { sendEventReminders } = require('./utils/reminders');

// Run daily at 8 AM
cron.schedule('0 8 * * *', async () => {
  console.log('Checking for event reminders...');
  await sendEventReminders();
});