mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
27 lines
No EOL
642 B
JavaScript
27 lines
No EOL
642 B
JavaScript
const getUser = (userId) => {
|
|
return typeof Users.findOne(userId) === "undefined" ? Users.findOne() : Users.findOne(userId);
|
|
};
|
|
|
|
Telescope.email.addEmails({
|
|
|
|
newUser: {
|
|
template: "newUser",
|
|
path: "/email/new-user/:_id?",
|
|
getProperties: Users.getNotificationProperties,
|
|
subject() {
|
|
return "A new user has been created";
|
|
},
|
|
getTestObject: getUser
|
|
},
|
|
|
|
accountApproved: {
|
|
template: "accountApproved",
|
|
path: "/email/account-approved/:_id?",
|
|
getProperties: Users.getNotificationProperties,
|
|
subject() {
|
|
return "Your account has been approved.";
|
|
},
|
|
getTestObject: getUser
|
|
}
|
|
|
|
}); |