Node.js Mongoose:Model.remove回调参数不同

Node.js Mongoose:Model.remove回调参数不同,node.js,mongodb,mongoose,Node.js,Mongodb,Mongoose,我在应用程序中使用的是瀑布方法,我需要在每个回调函数中指定参数 async.waterfall([ function (next) { Client.remove({ store: store }, next); }, function (objectsRemoved, next) { Item.remove({ store: store }, next); }, function (objectsRemoved, next

我在应用程序中使用的是
瀑布
方法,我需要在每个回调函数中指定参数

async.waterfall([
    function (next) {
        Client.remove({ store: store }, next);
    },
    function (objectsRemoved, next) {
        Item.remove({ store: store }, next);
    },
    function (objectsRemoved, next) {
        Store.remove({ _id: store.id }, next);
    },
// ...
上面的代码在服务器上运行良好,但在我的本地环境中失败。这是因为mongoose的
Model.remove
的回调参数在双方都不同

在服务器中,我得到
函数(err,objectsRemoved)

在本地我得到
函数(err,objectsRemoved,另一个对象)

奇怪的是,在这两种情况下,我运行的是相同版本的mongodb(2.4.9)和mongoose(3.8.20)

你知道会发生什么吗