mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
fix(profiles): public chairs
(cherry picked from commit 83366fa3a66afcc6f27d6fd987e55b565ad2af60)
This commit is contained in:
parent
d8440f8daa
commit
7108b02f4d
2 changed files with 3 additions and 3 deletions
|
|
@ -35,7 +35,7 @@ describe('GET /members/:memberId', () => {
|
|||
]);
|
||||
expect(Object.keys(memberRes.auth)).to.eql(['timestamps']);
|
||||
expect(Object.keys(memberRes.preferences).sort()).to.eql(['size', 'hair', 'skin', 'shirt',
|
||||
'costume', 'sleep', 'background'].sort());
|
||||
'chair', 'costume', 'sleep', 'background'].sort());
|
||||
});
|
||||
|
||||
it('handles non-existing members', async () => {
|
||||
|
|
|
|||
|
|
@ -539,8 +539,8 @@ schema.plugin(baseModel, {
|
|||
|
||||
// A list of publicly accessible fields (not everything from preferences because there are also a lot of settings tha should remain private)
|
||||
export let publicFields = `preferences.size preferences.hair preferences.skin preferences.shirt
|
||||
preferences.costume preferences.sleep preferences.background profile stats achievements party
|
||||
backer contributor auth.timestamps items`;
|
||||
preferences.chair preferences.costume preferences.sleep preferences.background profile stats
|
||||
achievements party backer contributor auth.timestamps items`;
|
||||
|
||||
// The minimum amount of data needed when populating multiple users
|
||||
export let nameFields = 'profile.name';
|
||||
|
|
|
|||
Loading…
Reference in a new issue