Skip to content

Commit 116475e

Browse files
authored
Merge pull request #352 from share/async-2
Upgrade to async@2
2 parents a2c213a + db69e23 commit 116475e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/backend.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,9 @@ Backend.prototype._sanitizeOp = function(agent, projection, collection, id, op,
244244
Backend.prototype._sanitizeOps = function(agent, projection, collection, id, ops, callback) {
245245
var backend = this;
246246
async.each(ops, function(op, eachCb) {
247-
backend._sanitizeOp(agent, projection, collection, id, op, eachCb);
247+
backend._sanitizeOp(agent, projection, collection, id, op, function(err) {
248+
process.nextTick(eachCb, err);
249+
});
248250
}, callback);
249251
};
250252
Backend.prototype._sanitizeOpsBulk = function(agent, projection, collection, opsMap, callback) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "lib/index.js",
66
"dependencies": {
77
"arraydiff": "^0.1.1",
8-
"async": "^1.4.2",
8+
"async": "^2.6.3",
99
"fast-deep-equal": "^2.0.1",
1010
"hat": "0.0.3",
1111
"ot-json0": "^1.0.1"

0 commit comments

Comments
 (0)