Merge pull request #2727 from MilosKozak/dev

add missing indexes for nsclient
This commit is contained in:
Milos Kozak
2017-08-05 17:15:41 +02:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
+4 -1
View File
@@ -79,7 +79,10 @@ function storage (collection, ctx) {
api.last = last;
api.remove = remove;
api.aggregate = require('./aggregate')({ }, api);
api.indexedFields = ['created_at'];
api.indexedFields = [
'created_at'
, 'NSCLIENT_ID'
];
return api;
}
+4
View File
@@ -127,6 +127,10 @@ function storage (env, ctx) {
, 'enteredBy'
, 'boluscalc.foods._id'
, 'notes'
, 'NSCLIENT_ID'
, 'percent'
, 'absolute'
, 'duration'
];
api.remove = remove;