[fix] backupcheck process
This commit is contained in:
@@ -88,7 +88,6 @@ export async function SaveLocalBackup(){
|
|||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
body: JSON.stringify(get(DataBase)),
|
body: JSON.stringify(get(DataBase)),
|
||||||
mode: 'no-cors'
|
|
||||||
})
|
})
|
||||||
if(corrupted.status === 400){
|
if(corrupted.status === 400){
|
||||||
alertError('Failed, Backup data is corrupted')
|
alertError('Failed, Backup data is corrupted')
|
||||||
|
|||||||
@@ -209,7 +209,6 @@ async function backupDrive(ACCESS_TOKEN:string) {
|
|||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
body: JSON.stringify(get(DataBase)),
|
body: JSON.stringify(get(DataBase)),
|
||||||
mode: 'no-cors'
|
|
||||||
})
|
})
|
||||||
if(corrupted.status === 400){
|
if(corrupted.status === 400){
|
||||||
alertError('Failed, Backup data is corrupted')
|
alertError('Failed, Backup data is corrupted')
|
||||||
|
|||||||
Reference in New Issue
Block a user