core/server/models/newsletter.js
/**
     * Returns an array of keys permitted in a method's `options` hash, depending on the current method.
     * @param {String} methodName The name of the method to check valid options for.
     * @return {Array} Keys allowed in the `options` hash of the model's method.
     */
Returns an array of keys permitted in a method's `options` hash, depending on the current method.
@param {String} methodName The name of the method to check valid options for.
@return {Array} Keys allowed in the `options` hash of the model's method.
Returns an array of keys permitted in a method ' s ` options ` hash depending on the current method . @param { String } methodName The name of the method to check valid options for . @return { Array } Keys allowed in the ` options ` hash of the model ' s method .
function permittedOptions(methodName) {
        let options = ghostBookshelf.Model.permittedOptions.call(this, methodName);
        const validOptions = {
            findOne: ['filter'],
            findAll: ['filter']
        };
        if (validOptions[methodName]) {
            options = options.concat(validOptions[methodName]);
        }
        return options;
    }
function permittedOptions ( methodName ) { let options = ghostBookshelf . Model . permittedOptions . call ( this , methodName ) ; const validOptions = { findOne : [ 'filter' ] , findAll : [ 'filter' ] } ; if ( validOptions [ methodName ] ) { options = options . concat ( validOptions [ methodName ] ) ; } return options ; }
Returns an array of keys permitted in a method's `options` hash, depending on the current method.
Returns an array of keys permitted in a method ' s ` options ` hash depending on the current method .
// allowlists for the `options` hash argument on methods, by method name. // these are the only options that can be passed to Bookshelf / Knex.