Skip to content

Commit

Permalink
fix thumbnail issue (#2917)
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 Oct 21, 2024
1 parent 1935c3b commit 2ced25c
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 2ced25c

Please sign in to comment.