Open MinhxNguyen7 opened 2 months ago
nodemailer
npm package.Function signature
// Map user ID to section codes that the user is subscribed to.
export const exampleDb = {
user1: {
subscriptions: [1, 2, 3],
email: 'user1@gmail.com'
},
user2: {
subscriptions: [1, 5, 9],
email: 'user2@gmail.com',
},
user3: {
subscriptions: [2, 7, 9],
email: 'user3@gmail.com',
}
// Information
export type ClassUpdate = {
section: number
status: string
}
export type NotifyParams = {
updates: ClassUpdate[]
}
import nodemailer from 'nodemailer'
async function notify(params: NotifyParams) {
//
}
@ap0nia please add notes.