mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05: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
1 changed files with 3 additions and 1 deletions
|
@ -131,7 +131,9 @@ GhostServer.prototype.stop = function () {
|
||||||
* @returns {Promise} Resolves once Ghost has restarted
|
* @returns {Promise} Resolves once Ghost has restarted
|
||||||
*/
|
*/
|
||||||
GhostServer.prototype.restart = function () {
|
GhostServer.prototype.restart = function () {
|
||||||
return this.stop().then(this.start.bind(this));
|
return this.stop().then(function (ghostServer) {
|
||||||
|
return ghostServer.start();
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue