mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 14:43:08 +03:00
Fixed timeout in default scheduler
no issue - the code didn't verify the existance of `timeoutInMS` before using it - this caused `requestTimeout` to be `undefined` - this commit adds the extra check so the fallback of 5000ms will be used
This commit is contained in:
parent
97830fda41
commit
43dd253c12
@ -278,7 +278,7 @@ SchedulingDefault.prototype._pingUrl = function (object) {
|
|||||||
|
|
||||||
const httpMethod = object.extra ? object.extra.httpMethod : 'PUT';
|
const httpMethod = object.extra ? object.extra.httpMethod : 'PUT';
|
||||||
const tries = object.tries || 0;
|
const tries = object.tries || 0;
|
||||||
const requestTimeout = object.extra ? object.extra.timeoutInMS : 1000 * 5;
|
const requestTimeout = (object.extra && object.extra.timeoutInMS) ? object.extra.timeoutInMS : 1000 * 5;
|
||||||
const maxTries = 30;
|
const maxTries = 30;
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
|
Loading…
Reference in New Issue
Block a user