Skip to content

Commit c8e7e75

Browse files
author
Miriad
committed
Merge branch 'dev'
2 parents 3695f1a + d122920 commit c8e7e75

File tree

8 files changed

+697
-415
lines changed

8 files changed

+697
-415
lines changed

app/api/cron/route.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ export function GET(request: NextRequest) {
1212
});
1313
}
1414
try {
15-
const url = `${publicURL()}/api/youtube/views`;
15+
// Forward the action param if present (discover, fetch, sync)
16+
const action = request.nextUrl.searchParams.get("action");
17+
const params = action ? `?action=${action}` : "";
18+
const url = `${publicURL()}/api/youtube/views${params}`;
1619
console.log("[CRON] Triggering YouTube views update:", url);
1720
fetch(url, {
1821
method: "POST",

0 commit comments

Comments
 (0)