Fix: NoteDocument import 경로 수정
- document_links.py에서 상대 import 경로 수정 - ModuleNotFoundError 해결
This commit is contained in:
@@ -123,7 +123,7 @@ async def create_document_link(
|
|||||||
if not target_doc:
|
if not target_doc:
|
||||||
# 문서에서 찾지 못하면 노트에서 찾기
|
# 문서에서 찾지 못하면 노트에서 찾기
|
||||||
print(f"🔍 문서에서 찾지 못함, 노트에서 검색: {link_data.target_document_id}")
|
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))
|
result = await db.execute(select(NoteDocument).where(NoteDocument.id == link_data.target_document_id))
|
||||||
target_note = result.scalar_one_or_none()
|
target_note = result.scalar_one_or_none()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user