Comment out group task fetching

This commit is contained in:
Blade Barringer
2016-11-14 21:42:23 -06:00
parent 571ef0b309
commit f0cb7c6bf3

View File

@@ -178,15 +178,15 @@ window.habitrpg = angular.module('habitrpg',
$scope.group.challenges = response.data.data;
});
//@TODO: Add this back when group tasks go live
return Tasks.getGroupTasks($scope.group._id);
// Tasks.getGroupTasks($scope.group._id);
// .then(function (response) {
// var tasks = response.data.data;
// tasks.forEach(function (element, index, array) {
// if (!$scope.group[element.type + 's']) $scope.group[element.type + 's'] = [];
// $scope.group[element.type + 's'].push(element);
// })
// });
})
.then(function (response) {
var tasks = response.data.data;
tasks.forEach(function (element, index, array) {
if (!$scope.group[element.type + 's']) $scope.group[element.type + 's'] = [];
$scope.group[element.type + 's'].push(element);
})
});
}]
})