We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87eddb9 commit eddad2eCopy full SHA for eddad2e
1 file changed
src/services/flowerService.js
@@ -11,11 +11,11 @@ const findUnlockedFlowers = async(memberId) => {
11
where: { memberId: Number(memberId) },
12
include: {
13
flower: {
14
- select: {
15
- id: true,
16
- name: true,
17
- FlowerImg: true,
18
- },
+ select: {
+ id: true,
+ name: true,
+ FlowerImg: true,
+ },
19
},
20
21
});
@@ -36,6 +36,8 @@ const findUnlockedFlowers = async(memberId) => {
36
return a.unlocked ? -1 : 1;
37
38
39
+ return result
40
+
41
}catch(error){
42
throw new CustomError(ErrorCodes.InternalServerError, '잠금 해제된 꽃 목록 조회 중 오류가 발생했습니다.');
43
}
0 commit comments