mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
scan timeout retry fixed
This commit is contained in:
@@ -14,16 +14,17 @@ const completeRescan = ref(false)
|
||||
const emitter = inject('emitter')
|
||||
|
||||
// Functions
|
||||
async function scan() {
|
||||
function scan() {
|
||||
scanning.set(true)
|
||||
await axios.get('/api/scan?platforms='+JSON.stringify(platformsToScan.value.map(p => p.fs_slug))+'&complete_rescan='+completeRescan.value, { timeout: 3600000 }).then((response) => {
|
||||
axios.get('/api/scan?platforms='+JSON.stringify(platformsToScan.value.map(p => p.fs_slug))+'&complete_rescan='+completeRescan.value).then((response) => {
|
||||
emitter.emit('snackbarScan', {'msg': response.data.msg, 'icon': 'mdi-check-bold', 'color': 'green'})
|
||||
emitter.emit('refresh')
|
||||
scanning.set(false)
|
||||
}).catch((error) => {
|
||||
console.log(error)
|
||||
emitter.emit('snackbarScan', {'msg': error.response.data.detail, 'icon': 'mdi-close-circle', 'color': 'red'})
|
||||
scanning.set(false)
|
||||
})
|
||||
scanning.set(false)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user