Skip to content

Commit 9244a0f

Browse files
authored
Merge pull request #1131 from Cookiezaurs/next
Next-bugfix
2 parents b2a0664 + f08f2c6 commit 9244a0f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

api/utils/taskmanager.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,8 @@ taskmanager.errorResults = function(options, callback) {
548548
if (res && res.length > 0) {
549549
for (var k = 0; k < res.length; k++) {
550550
var updateSub = {$set: {}};
551-
updateSub.$set["subtasks." + res.id + ".status"] = "errored";
552-
options.db.collection("long_tasks").update({_id: res.subtask}, updateSub, {multi: true});
551+
updateSub.$set["subtasks." + res[k]._id + ".status"] = "errored";
552+
options.db.collection("long_tasks").update({_id: res[k].subtask}, updateSub, {}, function(/*err,res*/) {});
553553
}
554554
}
555555
if (callback) {

frontend/express/public/javascripts/countly/countly.template.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ var AppRouter = Backbone.Router.extend({
12801280
*/
12811281
Handlebars.registerHelper('clearObjectId', function(object) {
12821282
if (object) {
1283-
var id = Object._id;
1283+
var id = object._id;
12841284
if (id.substr(0, 3) === "Obj") {
12851285
id = id.split("(")[1].split(")")[0];
12861286
}

0 commit comments

Comments
 (0)