Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update route.ts

Steven Tey2980f8602319
diff --git a/apps/web/app/(ee)/api/cron/online-presence/youtube/route.ts b/apps/web/app/(ee)/api/cron/online-presence/youtube/route.ts
index 462b7c2879..01953f54af 100644
--- a/apps/web/app/(ee)/api/cron/online-presence/youtube/route.ts
+++ b/apps/web/app/(ee)/api/cron/online-presence/youtube/route.ts
@@ -74,7 +74,7 @@ export async function GET(req: Request) {
const newStats = {
youtubeSubscriberCount: parseInt(subscriberCount || "0", 10),
youtubeVideoCount: parseInt(videoCount || "0", 10),
- youtubeViewCount: parseInt(videoCount || "0", 10),
+ youtubeViewCount: parseInt(viewCount || "0", 10),
};
if (deepEqual(currentStats, newStats)) {