Skip to content

Commit

Permalink
Fixed bluebird
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory Waxman authored and briancavalier committed Nov 28, 2016
1 parent 7e01098 commit a6b70bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion perf/doxbee-sequential-errors/promises-bluebird.js
Expand Up @@ -10,7 +10,7 @@ module.exports = function upload(stream, idOrPath, tag, done) {
var fileP = self.byUuidOrPath(idOrPath).get();
var version, fileId, file;

bluebird.all([blobIdP, fileP]).spread(function(blobId, fileV) {
bluebird.join(blobIdP, fileP, function(blobId, fileV) {
file = fileV;
var previousId = file ? file.version : null;
version = {
Expand Down
2 changes: 1 addition & 1 deletion perf/madeup-parallel/promises-bluebird.js
Expand Up @@ -11,7 +11,7 @@ module.exports = function upload(stream, idOrPath, tag, done) {
queries[i] = FileVersion.insert({index: i}).execWithin(tx);
}

Promise.all(queries).then().then(function() {
Promise.all(queries).then(function() {
tx.commit();
done();
}, function(err) {
Expand Down

0 comments on commit a6b70bd

Please sign in to comment.