Fix: NoteDocument import 경로 수정

- document_links.py에서 상대 import 경로 수정
- ModuleNotFoundError 해결
This commit is contained in:
Hyungi Ahn
2025-09-03 18:56:49 +09:00
parent d68bfd45b2
commit b8c1bee06a

View File

@@ -123,7 +123,7 @@ async def create_document_link(
if not target_doc:
# 문서에서 찾지 못하면 노트에서 찾기
print(f"🔍 문서에서 찾지 못함, 노트에서 검색: {link_data.target_document_id}")
from models.note_document import NoteDocument
from ...models.note_document import NoteDocument
result = await db.execute(select(NoteDocument).where(NoteDocument.id == link_data.target_document_id))
target_note = result.scalar_one_or_none()