fix(profiles): public chairs

(cherry picked from commit 83366fa3a6)
This commit is contained in:
Sabe Jones
2016-06-03 01:16:51 +00:00
committed by Blade Barringer
parent d8440f8daa
commit 7108b02f4d
2 changed files with 3 additions and 3 deletions

View File

@@ -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 () => {

View File

@@ -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';