diff --git a/src/routes/getTotalStats.ts b/src/routes/getTotalStats.ts index 6c6a01d..df310ab 100644 --- a/src/routes/getTotalStats.ts +++ b/src/routes/getTotalStats.ts @@ -10,9 +10,10 @@ let firefoxUsersCache = 0; // By the privacy friendly user counter let apiUsersCache = 0; - let lastUserCountCheck = 0; +updateExtensionUsers(); + export async function getTotalStats(req: Request, res: Response): Promise { const userCountQuery = `(SELECT COUNT(*) FROM (SELECT DISTINCT "userID" from "sponsorTimes") t) "userCount",`;