[#1442] hotfix - put user.tasks back into the api for now

This commit is contained in:
Tyler Renelle
2013-09-09 11:43:24 -04:00
parent 6591524079
commit 41cc18c1db

View File

@@ -236,10 +236,10 @@ UserSchema.methods.toJSON = function() {
transformTaskLists(doc); // we need to also transform for our server-side routes
// Remove some unecessary data as far as client consumers are concerned
_.each(['habit', 'daily', 'todo', 'reward'], function(type) {
delete doc["#{type}Ids"]
});
delete doc.tasks
//_.each(['habit', 'daily', 'todo', 'reward'], function(type) {
// delete doc["#{type}Ids"]
//});
//delete doc.tasks
doc.filters = {};
return doc;