Skip to content

Commit beee6d2

Browse files
authored
Merge branch 'develop' into feature/frontend/#33
2 parents 3b4a7a5 + 4809b1f commit beee6d2

5 files changed

Lines changed: 5 additions & 10 deletions

File tree

backend/controllers/authController.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ module.exports = {
1616
group: true,
1717
email:true,
1818
tel: true,
19+
profileImageUrl:true,
1920
lastLogin:true,
2021
firstLogin:true,
2122
bookmarks:true,

backend/controllers/groupController.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ module.exports = {
1818

1919
const result = await groupService.search(req.query);
2020

21-
// if(result.length < 1) throw new NotFoundError(`NotFound: 검색결과가 없습니다.`);
22-
2321
res.status(200).send(result);
2422
} catch(err) {
2523
res.status(err.status || 500).send(err.message);

backend/controllers/itemController.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ module.exports = {
2121

2222
const result = await itemService.search(req.query);
2323

24-
// if(result.length < 1) throw new NotFoundError(`Not Found: 검색결과가 없습니다.`);
25-
2624
res.status(200).send(result);
2725

2826
} catch(err) {
@@ -39,8 +37,6 @@ module.exports = {
3937
filters: `status:"modified" AND NOT accessGroups.read:"${res.locals.group}"`
4038
});
4139

42-
// if(result.hits.length < 1) throw new NotFoundError(`NotFound: 검색결과가 없습니다.`);
43-
4440
res.status(200).send(result.hits);
4541
} catch(err) {
4642
res.status(err.status || 500).send(err.message);

backend/controllers/userController.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ module.exports = {
4343

4444
if(auth === 'general') {
4545
projection = {
46-
_id: true, name: true, rank: true, status: true,
47-
group: true, email: true, tel: true, lastLogin: true
46+
_id: true, name: true, rank: true, status: true,
47+
group: true, email: true, tel: true, lastLogin: true, profileImageUrl: true,
4848
};
4949
}
5050

@@ -69,7 +69,7 @@ module.exports = {
6969
const keys = Object.keys(req.body);
7070
const valids = ['password', 'name','name','rank',
7171
'title','status','group','email','tel',
72-
'lastLogin', 'firstLogin', 'bookmarks', 'subscriptions' ];
72+
'lastLogin', 'firstLogin', 'bookmarks', 'subscriptions' , 'profileImageUrl'];
7373

7474
// Only allowed fields are Searchable
7575
for(let key of keys) {

backend/services/userService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = {
2121
});
2222

2323
if(result === null) throw new NotFoundError('User not found: 존재하지 않는 사용자입니다.');
24-
24+
2525
return result;
2626
},
2727

0 commit comments

Comments
 (0)