We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27475a6 commit 775e0a0Copy full SHA for 775e0a0
1 file changed
backend/services/userService.js
@@ -17,11 +17,9 @@ module.exports = {
17
const result = await User
18
.find(params, projection)
19
.catch(err => {
20
- throw new RuntimeError(params + '를 불러올 수 없습니다.');
+ throw new RuntimeError('조회를 진행할 수 없습니다.');
21
});
22
23
- if(result === null) throw new NotFoundError('Not Found: 검색 결과가 없습니다.');
24
-
25
return result;
26
},
27
@@ -30,11 +28,9 @@ module.exports = {
30
28
31
29
.findOne(params, projection)
32
33
+ throw new NotFoundError('Not Found: '+ params._id + '에 대한 검색 결과가 없습니다.');
34
35
36
37
+
38
39
40
0 commit comments