mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
parent
fc6aecceaa
commit
c9821a123a
4 changed files with 7 additions and 7 deletions
|
@ -15,7 +15,7 @@ module.exports = {
|
|||
!process.env.NODE_ENV.match(/^testing/)
|
||||
) {
|
||||
// Don't register email analytics job if we have no emails,
|
||||
// processer usage from many sites spinning up threads can be high.
|
||||
// processor usage from many sites spinning up threads can be high.
|
||||
// Mega service will re-run this scheduling task when an email is sent
|
||||
const emailCount = await models.Email
|
||||
.where('created_at', '>', moment.utc().subtract(30, 'days').toDate())
|
||||
|
|
|
@ -62,7 +62,7 @@ module.exports.isSet = function isSet(flag) {
|
|||
/**
|
||||
*
|
||||
* @param {object} options
|
||||
* @param {string} options.flagKey the interal lookup key of the flag e.g. labs.isSet(matchHelper)
|
||||
* @param {string} options.flagKey the internal lookup key of the flag e.g. labs.isSet(matchHelper)
|
||||
* @param {string} options.flagName the user-facing name of the flag e.g. Match helper
|
||||
* @param {string} options.helperName Name of the helper to be enabled/disabled
|
||||
* @param {string} [options.errorMessage] Optional replacement error message
|
||||
|
|
|
@ -5,7 +5,7 @@ const debug = require('@tryghost/debug')('settings:cache');
|
|||
const _ = require('lodash');
|
||||
const publicSettings = require('./public');
|
||||
|
||||
// Local function, only ever used for initialising
|
||||
// Local function, only ever used for initializing
|
||||
// We deliberately call "set" on each model so that set is a consistent interface
|
||||
const updateSettingFromModel = function updateSettingFromModel(settingModel) {
|
||||
debug('Auto updating', settingModel.get('key'));
|
||||
|
|
|
@ -656,9 +656,9 @@ const toDoList = {
|
|||
* Takes the arguments from a setup function and turns them into an array of promises to fullfil
|
||||
*
|
||||
* This is effectively a list of instructions with regard to which fixtures should be setup for this test.
|
||||
* * `default` - a special option which will cause the full suite of normal fixtures to be initialised
|
||||
* * `perms:init` - initialise the permissions object after having added permissions
|
||||
* * `perms:obj` - initialise permissions for a particular object type
|
||||
* * `default` - a special option which will cause the full suite of normal fixtures to be initialized
|
||||
* * `perms:init` - initialize the permissions object after having added permissions
|
||||
* * `perms:obj` - initialize permissions for a particular object type
|
||||
* * `users:roles` - create a full suite of users, one per role
|
||||
* @param {Object} toDos
|
||||
*/
|
||||
|
@ -668,7 +668,7 @@ const getFixtureOps = (toDos) => {
|
|||
|
||||
const fixtureOps = [];
|
||||
|
||||
// Database initialisation
|
||||
// Database initialization
|
||||
if (toDos.init || toDos.default) {
|
||||
fixtureOps.push(function initDB() {
|
||||
// skip adding all fixtures!
|
||||
|
|
Loading…
Add table
Reference in a new issue