src/server/middleware/auth/gmeauth.js
function updateUserComponentSettings(userId, componentId, settings, overwrite, callback) {
        return _updateUserObjectField(userId, ['settings', componentId], settings, overwrite)
            .then(function (userData) {
                return userData.settings[componentId];
            })
            .nodeify(callback);
    }
function updateUserComponentSettings(userId, componentId, settings, overwrite, callback) {
        return _updateUserObjectField(userId, ['settings', componentId], settings, overwrite)
            .then(function (userData) {
                return userData.settings[componentId];
            })
            .nodeify(callback);
    }
function updateUserComponentSettings ( userId , componentId , settings , overwrite , callback ) { return _updateUserObjectField ( userId , [ 'settings' , componentId ] , settings , overwrite ) . then ( function ( userData ) { return userData . settings [ componentId ] ; } ) . nodeify ( callback ) ; }
Updates the provided fields in the settings stored at given componentId.
@param {string} userId
@param {string} componentId
@param {object} settings
@param {boolean} [overwrite] - if true the settings for the key will be overwritten.
@param {function} [callback]
@returns {*}
Updates the provided fields in the settings stored at given componentId .