src/server/config-loader.js
/**
 * Sanitizes config version object
 *
 * @private
 * @param {module:config-loader.Config} config Configuration object
 */
Sanitizes config version object
@private
@param {module:config-loader.Config} config Configuration object
Sanitizes config version object @private @param { module : config - loader . Config } config Configuration object
function __sanitizeConfigObj_version(config)
{
    if(!config.hasOwnProperty("version") || semver.lt(config.version, version_current))
    {
        config.version = version_current;
        Core.logger.log(Core.LOG_LEVEL.WARN, `Version is outdated or missing. Upgrading config file`);
    }
}
function __sanitizeConfigObj_version ( config ) { if ( ! config . hasOwnProperty ( "version" ) || semver . lt ( config . version , version_current ) ) { config . version = version_current ; Core . logger . log ( Core . LOG_LEVEL . WARN , ` ` ) ; } }
Sanitizes config version object
 @private
 @param {module:config-loader.Config} config Configuration object
Sanitizes config version object @private @param { module : config - loader . Config } config Configuration object