mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Use new objId in api call
This commit is contained in:
@@ -100,7 +100,7 @@ function storage (env, ctx) {
|
||||
function remove (_id, fn) {
|
||||
var objId = new ObjectID(_id);
|
||||
|
||||
api( ).remove({ '_id': new ObjectID(_id) }, fn);
|
||||
api( ).remove({ '_id': objId }, fn);
|
||||
|
||||
ctx.bus.emit('data-received');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user