mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
prevent sync from clearing selected tags (#7631)
* prevent sync from clearing selected tags * improved tag selection bugfix
This commit is contained in:
committed by
Matteo Pagliazzi
parent
0bf7858d53
commit
539547b39e
@@ -13,6 +13,7 @@ schema.plugin(baseModel, {
|
||||
private: ['auth.local.hashed_password', 'auth.local.salt', '_cronSignature'],
|
||||
toJSONTransform: function userToJSON (plainObj, originalDoc) {
|
||||
plainObj._tmp = originalDoc._tmp; // be sure to send down drop notifs
|
||||
delete plainObj.filters;
|
||||
|
||||
return plainObj;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user