mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Merge pull request #2727 from MilosKozak/dev
add missing indexes for nsclient
This commit is contained in:
+4
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -127,6 +127,10 @@ function storage (env, ctx) {
|
||||
, 'enteredBy'
|
||||
, 'boluscalc.foods._id'
|
||||
, 'notes'
|
||||
, 'NSCLIENT_ID'
|
||||
, 'percent'
|
||||
, 'absolute'
|
||||
, 'duration'
|
||||
];
|
||||
|
||||
api.remove = remove;
|
||||
|
||||
Reference in New Issue
Block a user