We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3b4a7a5 + 4809b1f commit beee6d2Copy full SHA for beee6d2
5 files changed
backend/controllers/authController.js
@@ -16,6 +16,7 @@ module.exports = {
16
group: true,
17
email:true,
18
tel: true,
19
+ profileImageUrl:true,
20
lastLogin:true,
21
firstLogin:true,
22
bookmarks:true,
backend/controllers/groupController.js
@@ -18,8 +18,6 @@ module.exports = {
const result = await groupService.search(req.query);
- // if(result.length < 1) throw new NotFoundError(`NotFound: 검색결과가 없습니다.`);
-
23
res.status(200).send(result);
24
} catch(err) {
25
res.status(err.status || 500).send(err.message);
backend/controllers/itemController.js
@@ -21,8 +21,6 @@ module.exports = {
const result = await itemService.search(req.query);
- // if(result.length < 1) throw new NotFoundError(`Not Found: 검색결과가 없습니다.`);
26
27
28
@@ -39,8 +37,6 @@ module.exports = {
39
37
filters: `status:"modified" AND NOT accessGroups.read:"${res.locals.group}"`
40
38
});
41
42
- // if(result.hits.length < 1) throw new NotFoundError(`NotFound: 검색결과가 없습니다.`);
43
44
res.status(200).send(result.hits);
45
46
backend/controllers/userController.js
@@ -43,8 +43,8 @@ module.exports = {
if(auth === 'general') {
projection = {
- _id: true, name: true, rank: true, status: true,
47
- group: true, email: true, tel: true, lastLogin: true
+ _id: true, name: true, rank: true, status: true,
+ group: true, email: true, tel: true, lastLogin: true, profileImageUrl: true,
48
};
49
}
50
@@ -69,7 +69,7 @@ module.exports = {
69
const keys = Object.keys(req.body);
70
const valids = ['password', 'name','name','rank',
71
'title','status','group','email','tel',
72
- 'lastLogin', 'firstLogin', 'bookmarks', 'subscriptions' ];
+ 'lastLogin', 'firstLogin', 'bookmarks', 'subscriptions' , 'profileImageUrl'];
73
74
// Only allowed fields are Searchable
75
for(let key of keys) {
backend/services/userService.js
@@ -21,7 +21,7 @@ module.exports = {
if(result === null) throw new NotFoundError('User not found: 존재하지 않는 사용자입니다.');
+
return result;
},
0 commit comments