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);
  }
};

@@ -33,16 +33,74 @@
 cking');
+%0Aconst redisClient = require('../../models/redis-client');
 %0A%0Aconst 
@@ -591,24 +591,79 @@
     
-return tracking.
+const client = redisClient.getClient();%0A%0A    if (client) %7B%0A      await 
 clie
@@ -710,15 +710,21 @@
 d', 0);%0A
+    %7D%0A
   %7D%0A%7D;%0A

Fix tracking reset