From 09ed1fdf593340dad3f8065b828f526ae085ec41 Mon Sep 17 00:00:00 2001 From: yubinquitous Date: Wed, 7 Aug 2024 00:17:25 +0900 Subject: [PATCH] =?UTF-8?q?[FIX]=20=EC=8A=A4=EC=9B=A8=EA=B1=B0=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=20=EC=BB=A4=EB=AE=A4=EB=8B=88=ED=8B=B0=20=EA=B2=8C?= =?UTF-8?q?=EC=8B=9C=EA=B8=80=20=EC=82=AD=EC=A0=9C=20api=EC=9D=98=20respon?= =?UTF-8?q?se=20body=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions/api/routes/community/communityPostDELETE.js | 4 +--- functions/api/routes/community/index.js | 7 ------- functions/constants/swagger/schemas/communitySchema.js | 7 ------- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/functions/api/routes/community/communityPostDELETE.js b/functions/api/routes/community/communityPostDELETE.js index 7afc6ea..a681a27 100644 --- a/functions/api/routes/community/communityPostDELETE.js +++ b/functions/api/routes/community/communityPostDELETE.js @@ -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(); }); diff --git a/functions/api/routes/community/index.js b/functions/api/routes/community/index.js index 6919378..507b83d 100644 --- a/functions/api/routes/community/index.js +++ b/functions/api/routes/community/index.js @@ -196,13 +196,6 @@ router.delete( } * #swagger.responses[204] = { description: "커뮤니티 게시글 삭제 성공", - content: { - "application/json": { - schema:{ - $ref: "#/components/schemas/responseDeleteCommunityPostSchema" - } - } - } } * #swagger.responses[400] * #swagger.responses[403] diff --git a/functions/constants/swagger/schemas/communitySchema.js b/functions/constants/swagger/schemas/communitySchema.js index b6757e7..f8ca96c 100644 --- a/functions/constants/swagger/schemas/communitySchema.js +++ b/functions/constants/swagger/schemas/communitySchema.js @@ -108,12 +108,6 @@ const requestCommunityReportSchema = { $communityPostId: 1, }; -const responseDeleteCommunityPostSchema = { - $status: 204, - $success: true, - $message: '커뮤니티 게시글 삭제 성공', -}; - module.exports = { responseCommunityCategorySchema, responseCommunityPostsDetailSchema, @@ -122,5 +116,4 @@ module.exports = { requestCreateCommunityPostSchema, responseCommunityReportSchema, requestCommunityReportSchema, - responseDeleteCommunityPostSchema, };