Merge pull request #178 from maysale01/hotfix-pass-the-correct-scope-to-rest-write-handle-followup

hotfix: issue exposed during testing with es6 where the scope o…
This commit is contained in:
Fosco Marotto
2016-02-02 13:50:47 -08:00

View File

@@ -362,7 +362,7 @@ RestWrite.prototype.handleFollowup = function() {
};
delete this.storage['clearSessions'];
return this.config.database.destroy('_Session', sessionQuery)
.then(this.handleFollowup);
.then(this.handleFollowup.bind(this));
}
};