From 50452ddf691cb31659401413ce489e73bbca528c Mon Sep 17 00:00:00 2001 From: root Date: Mon, 9 Feb 2026 20:34:18 +0500 Subject: [PATCH] Fix TypeScript strict mode errors in admin events route Co-authored-by: Cursor --- src/app/api/admin/events/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/api/admin/events/route.ts b/src/app/api/admin/events/route.ts index 54a22b2..6611223 100644 --- a/src/app/api/admin/events/route.ts +++ b/src/app/api/admin/events/route.ts @@ -43,7 +43,7 @@ export async function GET(req: Request) { ]) const events = [ - ...connectionEvents.map((c) => ({ + ...connectionEvents.map((c: typeof connectionEvents[0]) => ({ id: c.id, type: "CONNECTION" as AdminEventType, status: c.status, @@ -64,7 +64,7 @@ export async function GET(req: Request) { shopifyProductId: p.shopifyProductId, }, })), - ...syncHealthEvents.map((s) => ({ + ...syncHealthEvents.map((s: typeof syncHealthEvents[0]) => ({ id: s.id, type: "SYNC_HEALTH" as AdminEventType, status: s.syncStatus,