5주차 미션 [베리]#9
Open
ammgree wants to merge 2 commits into
Open
Conversation
Open
ywkim1m
approved these changes
May 5, 2026
| console.log("body: ", req.body); | ||
|
|
||
| const storeId = 1; | ||
| const mission = await createMission(storeId, req.body); |
Collaborator
There was a problem hiding this comment.
const body = req.body as createMissionRequest;
같은 방식으로 DTO 타입 단언 필요합니다!
| const memberMissionId = await addMemberMission(userId, missionId); | ||
|
|
||
| if (memberMissionId === null) { | ||
| throw new Error(""); |
| const conn = await pool.getConnection(); | ||
|
|
||
| try { | ||
| const [confirm] = await pool.query<RowDataPacket[]>( |
Collaborator
There was a problem hiding this comment.
conn 을 가져왔으니 conn.query를 쓰는 것이 적합해 보입니다!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
회원가입
음식 카테고리가 없었다





음식 카테고리 추가하기
성공
같은 이메일이라 실패
가게 추가하기
리뷰 추가하기
가게에 미션 추가하기
가게의 미션을 도전 중인 미션에 추가하기