From 48602e4f914b2eed61a8081838ad20a05d44ad5e Mon Sep 17 00:00:00 2001 From: Andre Casey Date: Thu, 19 Sep 2013 12:52:47 -0700 Subject: [PATCH] Added FIXME line, since this commented code was confusing. Not sure whether to comment it referring to doc.filters or if it is a legacy function. --- src/models/user.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/models/user.js b/src/models/user.js index 824aefd3a2..1ce46e097c 100644 --- a/src/models/user.js +++ b/src/models/user.js @@ -252,11 +252,14 @@ UserSchema.methods.toJSON = function() { doc.id = doc._id; transformTaskLists(doc); // we need to also transform for our server-side routes + // FIXME? Is this a reference to `doc.filters` or just disabled code? Remove? + /* // 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 + */ doc.filters = {}; doc._tmp = this._tmp; // be sure to send down drop notifs