You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a function that can send an email, based on the provided interface below.
To test this, can make it an endpoint on the backend (can ask for help if needed).
Report back for next steps.
Details
Function signature
// Map user ID to section codes that the user is subscribed to.exportconstexampleDb={user1: {subscriptions: [1,2,3],email: '[email protected]'},user2: {subscriptions: [1,5,9],email: '[email protected]',},user3: {subscriptions: [2,7,9],email: '[email protected]',}// Information exporttypeClassUpdate={section: numberstatus: string
}exporttypeNotifyParams={updates: ClassUpdate[]}importnodemailerfrom'nodemailer'asyncfunctionnotify(params: NotifyParams){//}
@ap0nia please add notes.
The text was updated successfully, but these errors were encountered: