mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-01 15:29:19 +03:00
Fixed incorrect promise fulfilled callback in ghost-server restart function. (#7831)
closes #7760 - replaced bound start callback with anonymous callback
This commit is contained in:
parent
2d0e4ac770
commit
8993eb937f
@ -131,7 +131,9 @@ GhostServer.prototype.stop = function () {
|
||||
* @returns {Promise} Resolves once Ghost has restarted
|
||||
*/
|
||||
GhostServer.prototype.restart = function () {
|
||||
return this.stop().then(this.start.bind(this));
|
||||
return this.stop().then(function (ghostServer) {
|
||||
return ghostServer.start();
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user