diff --git a/attached_assets/image_1756594164880.png b/attached_assets/image_1756594164880.png new file mode 100644 index 0000000..79bc3e0 Binary files /dev/null and b/attached_assets/image_1756594164880.png differ diff --git a/server/routes.ts b/server/routes.ts index 28beb53..20baae1 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -57,7 +57,7 @@ export async function registerRoutes(app: Express): Promise { app.use(compression({ level: 6, threshold: 1024, // Only compress responses larger than 1KB - filter: (req, res) => { + filter: (req: any, res: any) => { // Don't compress video files if (req.headers['accept']?.includes('video/')) { return false; @@ -368,7 +368,7 @@ export async function registerRoutes(app: Express): Promise { } // Get ads from Bunny.net API - let ads = []; + let ads: any[] = []; try { const { BunnyService } = await import("./bunny"); const bunnyService = new BunnyService(); @@ -386,7 +386,7 @@ export async function registerRoutes(app: Express): Promise { totalAds: ads.length }); } catch (error) { - console.error(`Error fetching ads for video ${id}:`, error); + console.error(`Error fetching ads for video ${req.params.id}:`, error); res.status(500).json({ message: "Failed to fetch video ads" }); } });