diff --git a/ghost/limit-service/lib/limit.js b/ghost/limit-service/lib/limit.js index f53ad7a5f3..b029ebfd50 100644 --- a/ghost/limit-service/lib/limit.js +++ b/ghost/limit-service/lib/limit.js @@ -46,8 +46,8 @@ class MaxLimit extends Limit { * @param {Number} options.config.max - maximum limit the limit would check against * @param {Function} options.config.currentCountQuery - query checking the state that would be compared against the limit * @param {String} [options.config.error] - error message to use when limit is reached - * @param {String} options.helpLink - URL to the resource explaining how the limit works - * @param {Object} options.db - instance of knex db connection that currentCountQuery can use to run state check through + * @param {String} [options.helpLink] - URL to the resource explaining how the limit works + * @param {Object} [options.db] - instance of knex db connection that currentCountQuery can use to run state check through * @param {Object} options.errors - instance of errors compatible with Ghost-Ignition's errors (https://github.com/TryGhost/Ignition#errors) */ constructor({name, config, helpLink, db, errors}) { @@ -136,7 +136,7 @@ class MaxPeriodicLimit extends Limit { * @param {('month')} options.config.interval - an interval to take into account when checking the limit. Currently only supports 'month' value * @param {String} options.config.startDate - start date in ISO 8601 format (https://en.wikipedia.org/wiki/ISO_8601), used to calculate period intervals * @param {String} options.helpLink - URL to the resource explaining how the limit works - * @param {Object} options.db - instance of knex db connection that currentCountQuery can use to run state check through + * @param {Object} [options.db] - instance of knex db connection that currentCountQuery can use to run state check through * @param {Object} options.errors - instance of errors compatible with Ghost-Ignition's errors (https://github.com/TryGhost/Ignition#errors) */ constructor({name, config, helpLink, db, errors}) { @@ -238,7 +238,7 @@ class FlagLimit extends Limit { * @param {Number} options.config.disabled - disabled/enabled flag for the limit * @param {String} options.config.error - error message to use when limit is reached * @param {String} options.helpLink - URL to the resource explaining how the limit works - * @param {Object} options.db - instance of knex db connection that currentCountQuery can use to run state check through + * @param {Object} [options.db] - instance of knex db connection that currentCountQuery can use to run state check through * @param {Object} options.errors - instance of errors compatible with Ghost-Ignition's errors (https://github.com/TryGhost/Ignition#errors) */ constructor({name, config, helpLink, db, errors}) {