services/email-notifications.js
// 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 };