This fixes an issue exposed during testing with es6 where the scope on the 2nd invocation of handleFollowup isn't set

Signed-off-by: Alexander Mays <maysale01@gmail.com>
This commit is contained in:
Alexander Mays
2016-02-02 09:59:20 -05:00
parent 477a091f88
commit 5d05c742c9

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));
}
};