Skip to content

Fix sequelize.transaction() breaks when used with Promise.mapSeries (… - #6319

Merged
sushantdhiman merged 1 commit into
sequelize:masterfrom
hendrul:fix-5943
Jul 21, 2016
Merged

sushantdhiman merged 1 commit into
sequelize:masterfrom
hendrul:fix-5943

Conversation

@hendrul

@hendrul hendrul commented Jul 21, 2016 •

Copy link
Copy Markdown
Contributor

Fix #5943

Comment thread lib/promise.js
shimCLS(Promise.prototype, 'filter', [0]);
shimCLS(Promise.prototype, 'each', [0]);
shimCLS(Promise, 'map', [1]);
shimCLS(Promise, 'mapSeries', [1]);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only add the mapSeries changes, remove all the spaces you have added in other methods and shims.

@sushantdhiman

Copy link
Copy Markdown
Contributor

You also need to add the some tests here

@broofa

broofa commented Mar 23, 2017

Copy link
Copy Markdown
Contributor

Can we get this backported to latest (v3.30.2)?

This is one of those bugs that not a lot of people are going to encounter, but when they do it burns a shit-ton of time. (I lost over a day trying to figure out what was going on because of the complexity of the code I was wrapping the transaction around).

@hendrul
hendrul deleted the fix-5943 branch March 23, 2017 13:49
@hendrul
hendrul restored the fix-5943 branch March 23, 2017 13:49
sushantdhiman pushed a commit that referenced this pull request Mar 23, 2017
#7416)

* Fix sequelize.transaction() breaks when used with Promise.mapSeries (#5943) (#6319)

* jshint fixes
holm pushed a commit to holm/sequelize that referenced this pull request Nov 13, 2017
sequelize#7416)

* Fix sequelize.transaction() breaks when used with Promise.mapSeries (sequelize#5943) (sequelize#6319)

* jshint fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants