File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -546,7 +546,7 @@ export default class GeneralSettings extends DashboardView {
546
546
cleanupNoteColor : 'orange' ,
547
547
showPurgeFilesModal : false ,
548
548
} ) ;
549
- } ) . catch ( ( e ) => {
549
+ } ) . fail ( ( e ) => {
550
550
this . setState ( {
551
551
cleanupFilesMessage : e . error ,
552
552
cleanupNoteColor : 'red' ,
Original file line number Diff line number Diff line change @@ -341,13 +341,7 @@ export default class ParseApp {
341
341
342
342
cleanUpFiles ( ) {
343
343
let path = '/apps/' + this . slug + '/orphan_files' ;
344
- return fetch ( path , {
345
- method : 'POST' ,
346
- headers : {
347
- 'X-Parse-Application-Id' : this . applicationId ,
348
- 'X-Parse-Master-Key' : this . masterKey
349
- }
350
- } ) ;
344
+ return AJAX . post ( path ) ;
351
345
}
352
346
353
347
normalizePath ( path ) {
You can’t perform that action at this time.
0 commit comments