fix(pdf-upload): correction de l ouverture en double et integration de la colonne d embedding manquante pour DocumentChunk
Some checks failed
CI / Lint, Test & Build (push) Failing after 47s
CI / Deploy production (on server) (push) Has been skipped

This commit is contained in:
Antigravity
2026-05-24 19:05:39 +00:00
parent 7a8307f4b4
commit 682f8b7118
2 changed files with 5 additions and 1 deletions

View File

@@ -73,8 +73,11 @@ export function NoteAttachments({ noteId, onOpenDocQA, onCountChange, triggerUpl
}
}, [attachments, fetchAttachments])
const lastTriggerRef = useRef(0)
useEffect(() => {
if (triggerUpload && triggerUpload > 0) {
if (triggerUpload && triggerUpload > lastTriggerRef.current) {
lastTriggerRef.current = triggerUpload
if (attachments.length > 0) {
sectionRef.current?.scrollIntoView({ behavior: 'smooth', block: 'center' })
}

View File

@@ -683,6 +683,7 @@ model DocumentChunk {
startChar Int?
endChar Int?
metadata String?
embedding Unsupported("vector(1536)")?
createdAt DateTime @default(now())
attachment NoteAttachment @relation(fields: [attachmentId], references: [id], onDelete: Cascade)