Fixes
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user