Use new objId in api call

This commit is contained in:
Jeremy Cunningham
2018-11-20 21:57:51 -06:00
parent 3d6fd3552b
commit 630114ecb9
+1 -1
View File
@@ -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');
}