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:
@@ -362,7 +362,7 @@ RestWrite.prototype.handleFollowup = function() {
|
|||||||
};
|
};
|
||||||
delete this.storage['clearSessions'];
|
delete this.storage['clearSessions'];
|
||||||
return this.config.database.destroy('_Session', sessionQuery)
|
return this.config.database.destroy('_Session', sessionQuery)
|
||||||
.then(this.handleFollowup);
|
.then(this.handleFollowup.bind(this));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user