Skip to content

5주차 미션 [베리]#9

Open
ammgree wants to merge 2 commits into
mainfrom
berry/week5
Open

5주차 미션 [베리]#9
ammgree wants to merge 2 commits into
mainfrom
berry/week5

Conversation

@ammgree
Copy link
Copy Markdown
Collaborator

@ammgree ammgree commented Apr 30, 2026

회원가입

음식 카테고리가 없었다
음식카테고리없음
음식 카테고리 추가하기
음식카테고리추가1
음식카테고리추가2
성공
회원가입 성공
같은 이메일이라 실패
같은 이메일

가게 추가하기

가게추가1 가게추가2

리뷰 추가하기

리뷰 추가 성공1 리뷰 추가 성공2

가게에 미션 추가하기

미션 추가 성공1 미션 추가 성공2

가게의 미션을 도전 중인 미션에 추가하기

도전 미션 추가성공1 도전 미션 추가성공2

@ammgree ammgree linked an issue Apr 30, 2026 that may be closed by this pull request
console.log("body: ", req.body);

const storeId = 1;
const mission = await createMission(storeId, req.body);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const body = req.body as createMissionRequest;
같은 방식으로 DTO 타입 단언 필요합니다!

const memberMissionId = await addMemberMission(userId, missionId);

if (memberMissionId === null) {
throw new Error("");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

에러 메시지 추가해주세요!

const conn = await pool.getConnection();

try {
const [confirm] = await pool.query<RowDataPacket[]>(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conn 을 가져왔으니 conn.query를 쓰는 것이 적합해 보입니다!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

게시글 작성 API 구현하기

2 participants