old_contents: const tracking = require('../tracking');
  
  const showAdThreshold = 250;
  
  // eslint-disable-next-line no-multi-assign
  const redisAds = module.exports = {
    trackSupportRequest() {
      tracking.trackToday('supportRequest');
      tracking.track('feedr-ads', 'requestsSinceLastAd');
    },
  
    async getRequestsSinceLastAd() {
      return JSON.parse(await tracking.get('feedr-ads', 'requestsSinceLastAd')) || 0;
    },
  
    async aboveThreshold() {
      return (await redisAds.getRequestsSinceLastAd()) >= showAdThreshold;
    },
  
    async reset() {
      return tracking.client.hset('feedr-ads', 'requestsSinceLastAd', 0);
    }
  };
  
new_contents: const tracking = require('../tracking');
  const redisClient = require('../../models/redis-client');
  
  const showAdThreshold = 250;
  
  // eslint-disable-next-line no-multi-assign
  const redisAds = module.exports = {
    trackSupportRequest() {
      tracking.trackToday('supportRequest');
      tracking.track('feedr-ads', 'requestsSinceLastAd');
    },
  
    async getRequestsSinceLastAd() {
      return JSON.parse(await tracking.get('feedr-ads', 'requestsSinceLastAd')) || 0;
    },
  
    async aboveThreshold() {
      return (await redisAds.getRequestsSinceLastAd()) >= showAdThreshold;
    },
  
    async reset() {
      const client = redisClient.getClient();
  
      if (client) {
        await client.hset('feedr-ads', 'requestsSinceLastAd', 0);
      }
    }
  };
  
subject: Fix tracking reset