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:
2026-10-18 23:43:45 +08:00
parent 7f6db1a387
commit ca569f3e5c

View File

@@ -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)
} }
} }