Skip to content

Commit

Permalink
fix error for files from filemanager (infiniflow#2323)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
KevinHuSh authored Sep 9, 2024
1 parent db002cd commit f0d07cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/db/services/file2document_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_minio_address(cls, doc_id=None, file_id=None):
f2d = cls.get_by_file_id(file_id)
if f2d:
file = File.get_by_id(f2d[0].file_id)
if file.source_type == FileSource.LOCAL:
if not file.source_type or file.source_type == FileSource.LOCAL:
return file.parent_id, file.location
doc_id = f2d[0].document_id

Expand Down

0 comments on commit f0d07cd

Please sign in to comment.