Skip to content

Commit 0196290

Browse files
committed
Reverts to AJAX usage
1 parent cfc9015 commit 0196290

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/dashboard/Settings/GeneralSettings.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ export default class GeneralSettings extends DashboardView {
546546
cleanupNoteColor: 'orange',
547547
showPurgeFilesModal: false,
548548
});
549-
}).catch((e) => {
549+
}).fail((e) => {
550550
this.setState({
551551
cleanupFilesMessage: e.error,
552552
cleanupNoteColor: 'red',

src/lib/ParseApp.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -341,13 +341,7 @@ export default class ParseApp {
341341

342342
cleanUpFiles() {
343343
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);
351345
}
352346

353347
normalizePath(path) {

0 commit comments

Comments
 (0)