← back to Watches

services/email-notifications.js

11 lines

// Email notification service (SendGrid placeholder)
const SENDGRID_API_KEY = process.env.SENDGRID_API_KEY;

export async function sendAlertEmail(user, alert, currentPrice) {
  if (!SENDGRID_API_KEY) { console.log('SendGrid not configured'); return false; }
  console.log(`Would send email to ${user.email} about ${alert.watch_name} at $${currentPrice}`);
  return true;
}

export default { sendAlertEmail };