src/chartmogul/chartmogul-feeder.js
/**
   * The middleware in charge of fetching the NET MRR Churn Rate.
   *
   * @param {Object} config - The config require for the fetch
   * @return {Promise} The promisified geckoFormatted result of the fetch
   *
   */
The middleware in charge of fetching the NET MRR Churn Rate.
@param {Object} config - The config require for the fetch
@return {Promise} The promisified geckoFormatted result of the fetch
The middleware in charge of fetching the NET MRR Churn Rate . @param { Object } config - The config require for the fetch @return { Promise } The promisified geckoFormatted result of the fetch
async fetchNetMRRChurnRate(config) {
    const {
      entries: [previous, current],
    } = await this.requestChartMogulFor(
      '/metrics/mrr-churn-rate',
      config
    );
    return GeckoFormatter.toNumberAndSecondStat({
      reverse: true,
      prefix: '%',
      value: current['mrr-churn-rate'],
    }, {
      value: previous['mrr-churn-rate'],
    });
  }
async fetchNetMRRChurnRate ( config ) { const { entries : [ previous , current ] , } = await this . requestChartMogulFor ( '/metrics/mrr-churn-rate' , config ) ; return GeckoFormatter . toNumberAndSecondStat ( { reverse : true , prefix : '%' , value : current [ 'mrr-churn-rate' ] , } , { value : previous [ 'mrr-churn-rate' ] , } ) ; }
The middleware in charge of fetching the NET MRR Churn Rate.
The middleware in charge of fetching the NET MRR Churn Rate .