mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 10:12:21 +00:00
groups: send down full user.items for party / guilds. It's not that much
really, and trying to keep it up-to-date with ever-evolving UserSchema.items is a pain (eg, needed to add mounts)
This commit is contained in:
parent
46f91db14c
commit
a85baa2725
1 changed files with 1 additions and 2 deletions
|
|
@ -16,8 +16,7 @@ var api = module.exports;
|
|||
------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
var itemFields = 'items.armor items.head items.shield items.weapon items.currentPet items.pets'; // TODO just send down count(items.pets) for better performance
|
||||
var partyFields = 'profile preferences stats achievements party backer contributor flags.rest auth.timestamps ' + itemFields;
|
||||
var partyFields = 'profile preferences stats achievements party backer contributor flags.rest auth.timestamps items';
|
||||
var nameFields = 'profile.name';
|
||||
var challengeFields = '_id name';
|
||||
var guildPopulate = {path: 'members', select: nameFields, options: {limit: 15} };
|
||||
|
|
|
|||
Loading…
Reference in a new issue