Skip to content

Commit 273a8f1

Browse files
authored
Merge pull request #334 from PromptPlace/fix/#333
fix: 응답 구조 변경
2 parents d2ff32b + d711ff8 commit 273a8f1

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/members/controllers/member.controller.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,13 @@ export class MemberController {
166166

167167
res.status(200).json({
168168
message: "회원 프롬프트 목록 조회 완료",
169-
data: {
170-
prompts: result.prompts,
171-
pagination: {
172-
nextCursor: result.nextCursor,
173-
has_more: result.has_more,
174-
limit: limitNum,
175-
},
176-
},
177169
statusCode: 200,
170+
data: result.prompts,
171+
pagination: {
172+
nextCursor: result.nextCursor,
173+
has_more: result.has_more,
174+
limit: limitNum,
175+
},
178176
});
179177
} catch (error) {
180178
// 에러 예외 처리

0 commit comments

Comments
 (0)