fix: resolve all 6 prefer-const eslint errors for CI
Some checks failed
CI / Lint, Test & Build (push) Failing after 5m33s
Deploy to Production / Build and Deploy (push) Has been cancelled

This commit is contained in:
Antigravity
2026-05-16 22:47:38 +00:00
parent 983e2542c9
commit 878303a997
6 changed files with 6 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ async function getParentContext(
include: { note: { select: { id: true, title: true, content: true } } },
})
let noteIds = refs.map(r => r.noteId).filter(Boolean) as string[]
const noteIds = refs.map(r => r.noteId).filter(Boolean) as string[]
const notes: ParentNoteRef[] = refs.map(r => ({
noteId: r.noteId,

View File

@@ -306,7 +306,7 @@ Tu as accès à : note_search, note_read, document_search, task_extract, web_sea
const contextBlock = contextNotes.length > 0 ? prompts.contextWithNotes : prompts.contextNoNotes
// Load note images for vision
let imageContextParts: Array<{ type: 'image'; image: string }> = []
const imageContextParts: Array<{ type: 'image'; image: string }> = []
if (noteContext?.images && noteContext.images.length > 0) {
for (const imgPath of noteContext.images.slice(0, 4)) {
try {

View File

@@ -20,7 +20,7 @@ export async function GET(request: NextRequest) {
const notebookId = searchParams.get('notebookId')
const limit = searchParams.get('limit') ? parseInt(searchParams.get('limit')!) : undefined
let where: any = {
const where: any = {
userId: session.user.id,
trashedAt: null
}