Skip to content

Commit 1bb621a

Browse files
author
Rafael Santos
committed
Request to endpoint
1 parent 7ef4bdc commit 1bb621a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lib/ParseApp.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,11 @@ export default class ParseApp {
344344
return AJAX.post(path);
345345
}
346346

347+
cleanUpSystemLog() {
348+
let path = '/apps/' + this.slug + '/purge-logs';
349+
return AJAX.post(path);
350+
}
351+
347352
normalizePath(path) {
348353
path = path.replace(/([^:\s])\/+/g, '$1/');
349354
return path;
@@ -490,7 +495,7 @@ export default class ParseApp {
490495
//TODO: this currently works because everything that uses collaborators
491496
// happens to re-render after this call anyway, but really the collaborators
492497
// should be updated properly in a store or AppsManager or something
493-
this.settings.fields.fields.collaborators =
498+
this.settings.fields.fields.collaborators =
494499
Array.isArray(this.settings.fields.fields.collaborators) ?
495500
this.settings.fields.fields.collaborators : [];
496501
this.settings.fields.fields.collaborators.unshift(data);

0 commit comments

Comments
 (0)