fix: re-scan now shows status update immediately
Root cause: finally block called loadFiles() which cleared the cache and reloaded from server, overwriting the manual 'scanning' status. Server videos.status may not be synced yet by PostgreSQL trigger. Fix: Remove loadFiles() from finally block. Keep manual status update. Polling mechanism will sync status from server automatically.
This commit is contained in:
@@ -2251,7 +2251,8 @@ async function doReprocess(f: any) {
|
|||||||
console.error('[re-scan]', e)
|
console.error('[re-scan]', e)
|
||||||
} finally {
|
} finally {
|
||||||
reprocessing.value = false
|
reprocessing.value = false
|
||||||
await loadFiles()
|
// Don't call loadFiles() here - it would overwrite the manual status update
|
||||||
|
// The polling mechanism will sync status from server automatically
|
||||||
setTimeout(() => { actionMsg.value = '' }, 5000)
|
setTimeout(() => { actionMsg.value = '' }, 5000)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user