mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
committed by
Blade Barringer
parent
d8440f8daa
commit
7108b02f4d
@@ -35,7 +35,7 @@ describe('GET /members/:memberId', () => {
|
|||||||
]);
|
]);
|
||||||
expect(Object.keys(memberRes.auth)).to.eql(['timestamps']);
|
expect(Object.keys(memberRes.auth)).to.eql(['timestamps']);
|
||||||
expect(Object.keys(memberRes.preferences).sort()).to.eql(['size', 'hair', 'skin', 'shirt',
|
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 () => {
|
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)
|
// 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
|
export let publicFields = `preferences.size preferences.hair preferences.skin preferences.shirt
|
||||||
preferences.costume preferences.sleep preferences.background profile stats achievements party
|
preferences.chair preferences.costume preferences.sleep preferences.background profile stats
|
||||||
backer contributor auth.timestamps items`;
|
achievements party backer contributor auth.timestamps items`;
|
||||||
|
|
||||||
// The minimum amount of data needed when populating multiple users
|
// The minimum amount of data needed when populating multiple users
|
||||||
export let nameFields = 'profile.name';
|
export let nameFields = 'profile.name';
|
||||||
|
|||||||
Reference in New Issue
Block a user