- Remove settings references

This commit is contained in:
2018-03-02 03:38:38 -05:00
parent ac3c0e456c
commit 8f32fdeec5
2 changed files with 2 additions and 38 deletions

View File

@@ -204,6 +204,7 @@ Router.route('/:id?')
var ProfileEvents = new EventEmitter();
var id = req.params.id || null;
var method = id ? 'get' : 'all';
ProfileEvents.once(method, (err, result) => {
if (err) {
@@ -215,7 +216,7 @@ Router.route('/:id?')
}
});
Profiles.get(ProfileEvents, id || null);
Profiles[method](ProfileEvents, id);
});
})
.patch( update )