File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -41,16 +41,16 @@ export const listBucket = (params: Backup.ForBucket) => {
4141 return http . post ( '/backups/buckets' , request , TimeoutEnum . T_40S ) ;
4242} ;
4343export const handleBackup = ( params : Backup . Backup ) => {
44- return http . post ( `/backups/backup` , params , TimeoutEnum . T_1H ) ;
44+ return http . post ( `/backups/backup` , params , TimeoutEnum . T_10M ) ;
4545} ;
4646export const listBackupOptions = ( ) => {
4747 return http . get < Array < Backup . BackupOption > > ( `/backups/options` ) ;
4848} ;
4949export const handleRecover = ( params : Backup . Recover ) => {
50- return http . post ( `/backups/recover` , params , TimeoutEnum . T_1D ) ;
50+ return http . post ( `/backups/recover` , params , TimeoutEnum . T_10M ) ;
5151} ;
5252export const handleRecoverByUpload = ( params : Backup . Recover ) => {
53- return http . post ( `/backups/recover/byupload` , params , TimeoutEnum . T_1D ) ;
53+ return http . post ( `/backups/recover/byupload` , params , TimeoutEnum . T_10M ) ;
5454} ;
5555export const downloadBackupRecord = ( params : Backup . RecordDownload ) => {
5656 return http . post < string > ( `/backups/record/download` , params , TimeoutEnum . T_10M ) ;
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ export const preCheck = (req: Website.CheckReq) => {
155155} ;
156156
157157export const updateNginxFile = ( req : Website . NginxUpdate ) => {
158- return http . post < any > ( `/websites/nginx/update` , req ) ;
158+ return http . post < any > ( `/websites/nginx/update` , req , TimeoutEnum . T_3M ) ;
159159} ;
160160
161161export const changeDefaultServer = ( req : Website . DefaultServerUpdate ) => {
Original file line number Diff line number Diff line change @@ -23,6 +23,4 @@ export enum TimeoutEnum {
2323 T_3M = 180000 ,
2424 T_5M = 300000 ,
2525 T_10M = 600000 ,
26- T_1H = 3600000 ,
27- T_1D = 86400000 ,
2826}
You can’t perform that action at this time.
0 commit comments