-
Couldn't load subscription status.
- Fork 456
Bulk transactions #690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Bulk transactions #690
Conversation
lib/transaction/transaction.js
Outdated
| // TODO: Handle multiple calls? | ||
| this._callback = callback; | ||
|
|
||
| for (var collection in this._docOps) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could flatten this to iterate over this._ops?
| try { | ||
| this._otApply(op, false); | ||
| } catch (error) { | ||
| return this._hardRollback(error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure we clear transaction in the hard rollback
No description provided.