Fix TypeScript strict mode errors in admin events route
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
f39a71eebd
commit
50452ddf69
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user