This commit is contained in:
2018-05-29 01:18:00 -04:00
parent bc4c5284f8
commit 7be8aa0876

View File

@@ -187,7 +187,7 @@ Router.route('/submitted')
if (decoded && decoded.hasPermission) {
var ProfileEvents = new EventEmitter();
ProfileEvents.once(method, (err, result) => {
ProfileEvents.once('allSubmitted', (err, result) => {
if (err) {
res.status(500).json({ message: 'Could not get profiles', err: err });
}
@@ -213,7 +213,7 @@ Router.route('/verified')
if (decoded && decoded.hasPermission) {
var ProfileEvents = new EventEmitter();
ProfileEvents.once(method, (err, result) => {
ProfileEvents.once('allVerified', (err, result) => {
if (err) {
res.status(500).json({ message: 'Could not get profiles', err: err });
}