mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-13 16:09:00 +08:00
fix: document paused at format error (#925)
This commit is contained in:
parent
8d6d1c442b
commit
22c1aafb9b
@ -370,8 +370,8 @@ class DocumentService:
|
|||||||
raise DocumentIndexingError()
|
raise DocumentIndexingError()
|
||||||
# update document to be recover
|
# update document to be recover
|
||||||
document.is_paused = False
|
document.is_paused = False
|
||||||
document.paused_by = current_user.id
|
document.paused_by = None
|
||||||
document.paused_at = time.time()
|
document.paused_at = None
|
||||||
|
|
||||||
db.session.add(document)
|
db.session.add(document)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user