Skip to content

Node.js based forum software built for the modern web

fix: +comment, -debug log

Julian Lam9608b44f2185
diff --git a/public/src/client/flags/list.js b/public/src/client/flags/list.js
index 2dcf7dc091..e5d9af0c20 100644
--- a/public/src/client/flags/list.js
+++ b/public/src/client/flags/list.js
@@ -102,6 +102,7 @@ define('forum/flags/list', ['components', 'Chart'], function (components, Chart)
var flagIds = Flags.getSelected();
var promises = [];
+ // TODO: this can be better done with flagIds.map to return promises
flagIds.forEach(function (flagId) {
promises.push(new Promise(function (resolve, reject) {
var handler = function (err) {
@@ -151,7 +152,6 @@ define('forum/flags/list', ['components', 'Chart'], function (components, Chart)
app.alertSuccess('[[flags:bulk-success, ' + fulfilled + ']]');
}
- console.log(errors);
errors.forEach(function (res) {
app.alertError(res.reason);
});