From 5bd58a3b99ec3f4ad298da40481a74c89949fc3b Mon Sep 17 00:00:00 2001 From: grulla79 Date: Sat, 13 Jul 2024 14:41:24 +0900 Subject: [PATCH 1/5] =?UTF-8?q?=F0=9F=92=AC=20todo=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/user/user.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/user/user.service.js b/src/routes/user/user.service.js index f1a1ae1..f81dcfa 100644 --- a/src/routes/user/user.service.js +++ b/src/routes/user/user.service.js @@ -84,7 +84,7 @@ exports.updateRequest = async (requestId, formData) => { exports.updateRequestState = async (userId, requestId, status, formData, requestType) => { if (userId) { await userRepository.updateRequestState(userId, requestId, status, formData); - if (requestType === 'add') { + if (requestType === 'add') { //TODO: add 일 때, 단어 중복검사 로직 우선적 검증 추가 await wordRepository.addWord(requestId, formData); await userRepository.updateRequest(requestId, formData); //수정값 사용자 요청 업데이트 } else if (requestType === 'mod') { From 9844de85ee9b9553dc8d02c67ee3324319a78e1d Mon Sep 17 00:00:00 2001 From: sean Date: Wed, 17 Jul 2024 11:23:08 +0900 Subject: [PATCH 2/5] =?UTF-8?q?=F0=9F=90=9B=20=EB=B6=88=ED=95=84=EC=9A=94?= =?UTF-8?q?=ED=95=9C=20=EC=BD=94=EB=93=9C=20=EC=82=AD=EC=A0=9C=20=EB=B0=8F?= =?UTF-8?q?=20=EB=8B=A8=EC=96=B4=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/user/user.route.js | 1 - src/routes/word/word.repository.js | 1 + src/routes/word/word.route.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/user/user.route.js b/src/routes/user/user.route.js index 09aed0c..1e7b620 100644 --- a/src/routes/user/user.route.js +++ b/src/routes/user/user.route.js @@ -44,7 +44,6 @@ userRouter.delete('/:searchTerm', isLoggedIn, delRecentSearch); // 최근 검색 //등록 요청 userRouter.post('/requests/:nickname/new', isLoggedIn, postWords); -module.exports = userRouter; // 요청 조회 userRouter.get('/requests', isLoggedIn, UserRequests); // 요청 목록 조회 userRouter.get('/requests/all', isLoggedIn, UserRequestsAll); // 모든 요청 목록 조회 diff --git a/src/routes/word/word.repository.js b/src/routes/word/word.repository.js index f6a56b6..049a905 100644 --- a/src/routes/word/word.repository.js +++ b/src/routes/word/word.repository.js @@ -127,6 +127,7 @@ exports.updateWord = async (requestId, formData) => { } // word 데이터를 request 데이터로 업데이트합니다. + wordToUpdate.word = formData.devTerm; wordToUpdate.awkPron = formData.awkPron; wordToUpdate.comPron = formData.commonPron; wordToUpdate.info = formData.addInfo; diff --git a/src/routes/word/word.route.js b/src/routes/word/word.route.js index 0bbf5f1..99fcc0e 100644 --- a/src/routes/word/word.route.js +++ b/src/routes/word/word.route.js @@ -14,7 +14,7 @@ wordRouter.get('/search/related', getRelatedWords); wordRouter.post('/search/:searchTerm', isUser, getSearchWords); //등록요청 단어 중복검사 -wordRouter.post('/checkDuplicateWord', checkDuplicateWord); +wordRouter.post('/word-duplicate', checkDuplicateWord); module.exports = wordRouter; From 20235d09f5c0da522ce27c73d7d7be1fbbed95d3 Mon Sep 17 00:00:00 2001 From: sean Date: Wed, 17 Jul 2024 11:23:41 +0900 Subject: [PATCH 3/5] =?UTF-8?q?=F0=9F=92=84=20api=20url=20=ED=91=9C?= =?UTF-8?q?=EA=B8=B0=EB=B2=95=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/word/word.route.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/word/word.route.js b/src/routes/word/word.route.js index 99fcc0e..e8391c5 100644 --- a/src/routes/word/word.route.js +++ b/src/routes/word/word.route.js @@ -14,7 +14,7 @@ wordRouter.get('/search/related', getRelatedWords); wordRouter.post('/search/:searchTerm', isUser, getSearchWords); //등록요청 단어 중복검사 -wordRouter.post('/word-duplicate', checkDuplicateWord); +wordRouter.post('/duplicate', checkDuplicateWord); module.exports = wordRouter; From c3683958855c2fab172a0923cbf63ef63286c5a2 Mon Sep 17 00:00:00 2001 From: sean Date: Wed, 17 Jul 2024 11:24:47 +0900 Subject: [PATCH 4/5] =?UTF-8?q?=F0=9F=92=84=20api=20url=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20=EC=82=AC=ED=95=AD=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/swagger/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swagger/request.js b/src/swagger/request.js index e7936ca..bbf1f77 100644 --- a/src/swagger/request.js +++ b/src/swagger/request.js @@ -99,7 +99,7 @@ /** * @swagger - * /words/checkDuplicateWord: + * /words/duplicate: * post: * summary: 개발 용어 중복 검사 * tags: [개발 용어 API] From e7f50f63dd12850cde4fa19e7e9f9eeeea4f3933 Mon Sep 17 00:00:00 2001 From: sean Date: Wed, 17 Jul 2024 11:33:58 +0900 Subject: [PATCH 5/5] =?UTF-8?q?=F0=9F=90=9B=20=EC=98=A4=ED=83=80=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/swagger/swagger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swagger/swagger.js b/src/swagger/swagger.js index d1b4616..63d8697 100644 --- a/src/swagger/swagger.js +++ b/src/swagger/swagger.js @@ -15,7 +15,7 @@ const options = { description: 'Local Development', }, { - url: 'https://api.surakano.site/', + url: 'https://api.murakano.site/', description: 'Real Server', }, ],