Skip to content

Commit

Permalink
[FIX] 스웨거에서 커뮤니티 게시글 삭제 api의 response body 삭제 (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
yubinquitous authored Jan 1, 2025
1 parent 696bdc6 commit 43d98ac
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
4 changes: 1 addition & 3 deletions functions/api/routes/community/communityPostDELETE.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,5 @@ module.exports = asyncWrapper(async (req, res) => {
await communityDB.deleteCommunityPostById(dbConnection, communityPostId);
await communityDB.deleteCommunityCategoryPostByPostId(dbConnection, communityPostId);

res
.status(statusCode.NO_CONTENT)
.send(util.success(statusCode.NO_CONTENT, responseMessage.DELETE_COMMUNITY_POST_SUCCESS));
res.status(statusCode.NO_CONTENT).send();
});
7 changes: 0 additions & 7 deletions functions/api/routes/community/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,6 @@ router.delete(
}
* #swagger.responses[204] = {
description: "커뮤니티 게시글 삭제 성공",
content: {
"application/json": {
schema:{
$ref: "#/components/schemas/responseDeleteCommunityPostSchema"
}
}
}
}
* #swagger.responses[400]
* #swagger.responses[403]
Expand Down
7 changes: 0 additions & 7 deletions functions/constants/swagger/schemas/communitySchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,6 @@ const requestCommunityReportSchema = {
$communityPostId: 1,
};

const responseDeleteCommunityPostSchema = {
$status: 204,
$success: true,
$message: '커뮤니티 게시글 삭제 성공',
};

module.exports = {
responseCommunityCategorySchema,
responseCommunityPostsDetailSchema,
Expand All @@ -122,5 +116,4 @@ module.exports = {
requestCreateCommunityPostSchema,
responseCommunityReportSchema,
requestCommunityReportSchema,
responseDeleteCommunityPostSchema,
};

0 comments on commit 43d98ac

Please sign in to comment.