|
@@ -204,7 +204,7 @@ module.exports = (crowi) => {
|
|
|
|
|
|
|
|
// return email only when specified by query
|
|
// return email only when specified by query
|
|
|
const { email } = doc;
|
|
const { email } = doc;
|
|
|
- const user = doc.toObject('hoge');
|
|
|
|
|
|
|
+ const user = doc.toObject();
|
|
|
if (forceIncludeAttributes.includes('email')) {
|
|
if (forceIncludeAttributes.includes('email')) {
|
|
|
user.email = email;
|
|
user.email = email;
|
|
|
}
|
|
}
|