- Mail profile submission info and approval link

- Stuff
This commit is contained in:
2018-06-03 21:02:16 -04:00
parent 9ed024e86d
commit 947d743715
3 changed files with 93 additions and 33 deletions

View File

@@ -178,20 +178,20 @@ Router.route('/list' + ParamStr)
Router.route('/submission')
.post((req, res) => {
var ProfileEvents = new EventEmitter();
var profile = req.body;
var ProfileEvents = new EventEmitter();
var profile = req.body;
ProfileEvents.once('processSubmission', (err, result) => {
if (err) {
res.status(500).json({ message: 'Could not process user profile submission', err: err, profile: profile });
}
ProfileEvents.once('processSubmission', (err, result) => {
if (err) {
res.status(500).json({ message: 'Could not process user profile submission', err: err, profile: profile });
}
if (result) {
res.status(200).json(result);
}
});
if (result) {
res.status(200).json(result);
}
});
Profiles.processSubmission(ProfileEvents, profile);
Profiles.processSubmission(ProfileEvents, profile);
});
Router.route('/submitted')