Kevin Hu
commited on
Commit
·
2904f4e
1
Parent(s):
ee8a916
fix thumbnail issue (#2917)
Browse files### What problem does this PR solve?
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
api/db/services/document_service.py
CHANGED
@@ -317,7 +317,7 @@ class DocumentService(CommonService):
|
|
317 |
@classmethod
|
318 |
@DB.connection_context()
|
319 |
def get_thumbnails(cls, docids):
|
320 |
-
fields = [cls.model.id, cls.model.thumbnail]
|
321 |
return list(cls.model.select(
|
322 |
*fields).where(cls.model.id.in_(docids)).dicts())
|
323 |
|
|
|
317 |
@classmethod
|
318 |
@DB.connection_context()
|
319 |
def get_thumbnails(cls, docids):
|
320 |
+
fields = [cls.model.id, cls.model.kb_id, cls.model.thumbnail]
|
321 |
return list(cls.model.select(
|
322 |
*fields).where(cls.model.id.in_(docids)).dicts())
|
323 |
|