Build fixes: offline-safe fonts, Next.js API route type updates, TS strict errors resolved, MUI import cleanup, chat markdown wrapper, Azure OpenAI typing, caching key + chapter API id types, and misc error-logging typings.
This commit is contained in:
@@ -60,7 +60,7 @@ export async function POST(request: Request) {
|
||||
})
|
||||
|
||||
// Create a map of verseId -> bookmark
|
||||
const bookmarkMap = {}
|
||||
const bookmarkMap: Record<string, typeof bookmarks[number]> = {}
|
||||
bookmarks.forEach(bookmark => {
|
||||
bookmarkMap[bookmark.verseId] = bookmark
|
||||
})
|
||||
@@ -77,4 +77,4 @@ export async function POST(request: Request) {
|
||||
|
||||
return NextResponse.json({ error: messages.bookmarkError }, { status: 500 })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user