mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
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.
This commit is contained in:
committed by
Tyler Renelle
parent
978497656b
commit
48602e4f91
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user