Fixed undefined error

refs https://github.com/TryGhost/Toolbox/issues/135

- Not all callers provide the parameter, so an empty object default saves from unecessary "undefined" errors
This commit is contained in:
Naz 2021-11-18 12:58:55 +04:00 committed by naz
parent 640296f74b
commit 155e96b044

View File

@ -17,7 +17,7 @@ module.exports.isFinished = async (options = {disableDbReadyEvent: false}) => {
};
// @TODO: unify all the reset/softTeset helpers so they either work how the main code works or the reasons why they are different are clear
module.exports.init = ({urlCache}) => {
module.exports.init = ({urlCache} = {}) => {
urlService.init({urlCache});
};