src/chartmogul/chartmogul-feeder.js
/**
   * The middleware in charge of fetching the ARR.
   *
   * @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 ARR.
@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 ARR . @param { Object } config - The config require for the fetch @return { Promise } The promisified geckoFormatted result of the fetch
async fetchArr(config) {
    const {
      entries: [previous, current],
    } = await this.requestChartMogulFor(
      '/metrics/arr',
      config
    );
    return GeckoFormatter.toNumberAndSecondStat({
      value: Math.round(current.arr) / 100,
      prefix: '€',
    }, {
      value: Math.round(previous.arr) / 100,
    });
  }
async fetchArr ( config ) { const { entries : [ previous , current ] , } = await this . requestChartMogulFor ( '/metrics/arr' , config ) ; return GeckoFormatter . toNumberAndSecondStat ( { value : Math . round ( current . arr ) / 100 , prefix : '€', } , { value : Math . round ( previous . arr ) / 100 , } ) ; }
The middleware in charge of fetching the ARR.
The middleware in charge of fetching the ARR .