Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion models/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ const clearProcessingStatus = db.prepare(`
DELETE FROM processing_status WHERE document_id = ?
`);

// Consider any row in processing_status as active; rows are cleared on 'complete'
const getActiveProcessing = db.prepare(`
SELECT * FROM processing_status
WHERE start_time >= datetime('now', '-30 seconds')
ORDER BY start_time DESC LIMIT 1
`);

Expand Down
Loading