From 591b342855f7f8b39d82543280db7c26c262061c Mon Sep 17 00:00:00 2001 From: Ajay Date: Wed, 6 Mar 2024 00:47:51 -0500 Subject: [PATCH] Add default user count, update url --- src/routes/getBrandingStats.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/getBrandingStats.ts b/src/routes/getBrandingStats.ts index 0046f91..76ea62b 100644 --- a/src/routes/getBrandingStats.ts +++ b/src/routes/getBrandingStats.ts @@ -7,7 +7,7 @@ import { Logger } from "../utils/logger"; import { getCWSUsers, getChromeUsers } from "../utils/getCWSUsers"; // A cache of the number of chrome web store users -let chromeUsersCache = 0; +let chromeUsersCache = 30000; let firefoxUsersCache = 0; interface DBStatsData { @@ -64,7 +64,7 @@ async function getStats(): Promise { function updateExtensionUsers() { const mozillaAddonsUrl = "https://addons.mozilla.org/api/v3/addons/addon/dearrow/"; - const chromeExtensionUrl = "https://chrome.google.com/webstore/detail/enamippconapkdmgfgjchkhakpfinmaj"; + const chromeExtensionUrl = "https://chromewebstore.google.com/detail/dearrow-better-titles-and/enamippconapkdmgfgjchkhakpfinmaj"; const chromeExtId = "enamippconapkdmgfgjchkhakpfinmaj"; axios.get(mozillaAddonsUrl)