Fix TypeScript strict mode errors in admin events route

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
root 2026-02-09 20:34:18 +05:00
parent f39a71eebd
commit 50452ddf69

View File

@ -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,