List reports

This commit is contained in:
Zalmoxisus
2016-08-19 19:43:36 +03:00
parent 426fc75610
commit b9de52d23f
3 changed files with 33 additions and 0 deletions

View File

@ -31,6 +31,11 @@ module.exports.run = function(worker) {
res.send(r || {});
});
break;
case 'list':
store.list(req.body.query, req.body.fields).then(function(r) {
res.send(r);
});
break;
default:
store.add(req.body).then(function(r) {
scServer.exchange.publish('log', req.body);