Skip to content

Commit

Permalink
fix thumbnail issue
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinHuSh committed Oct 21, 2024
1 parent 1935c3b commit b9a8cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/db/services/document_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def get_doc_id_by_doc_name(cls, doc_name):
@classmethod
@DB.connection_context()
def get_thumbnails(cls, docids):
fields = [cls.model.id, cls.model.thumbnail]
fields = [cls.model.id, cls.model.kb_id, cls.model.thumbnail]
return list(cls.model.select(
*fields).where(cls.model.id.in_(docids)).dicts())

Expand Down

0 comments on commit b9a8cd6

Please sign in to comment.