diff --git a/RestWrite.js b/RestWrite.js index ea7b2225e2..4318880edd 100644 --- a/RestWrite.js +++ b/RestWrite.js @@ -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)); } };