fix: document paused at format error (#925)

This commit is contained in:
takatost 2023-08-20 01:54:12 +08:00 committed by GitHub
parent 8d6d1c442b
commit 22c1aafb9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -370,8 +370,8 @@ class DocumentService:
raise DocumentIndexingError()
# update document to be recover
document.is_paused = False
document.paused_by = current_user.id
document.paused_at = time.time()
document.paused_by = None
document.paused_at = None
db.session.add(document)
db.session.commit()