Skip to content

Commit

Permalink
Change to unshift
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawidpol committed Oct 10, 2023
1 parent 0546f99 commit 28aafc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client/doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ Doc.prototype._hardRollback = function(err) {
);
}

if (inflightOp) pendingOps.push(inflightOp);
if (inflightOp) pendingOps.unshift(inflightOp);
var allOpsHadCallbacks = !!pendingOps.length;
for (var i = 0; i < pendingOps.length; i++) {
allOpsHadCallbacks = util.callEach(pendingOps[i].callbacks, err) && allOpsHadCallbacks;
Expand Down

0 comments on commit 28aafc6

Please sign in to comment.