-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/non member logic #81
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤭 참 잘했어요 🤭
@@ -22,6 +22,7 @@ const postBookController = async (req: Request, res: Response) => { | |||
try { | |||
const resData = await bookService.postBookService( | |||
req.user ? true : false, | |||
req.user ? Number(req.user.id) : constant.ANONYMOUS_USER, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😎 SWAG 😎
src/controller/book.ts
Outdated
@@ -39,6 +41,28 @@ const postBookController = async (req: Request, res: Response) => { | |||
); | |||
} | |||
|
|||
if (resData == constant.ANONYMOUS_USER) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 음..... 🤔 한번은 실수
src/controller/book.ts
Outdated
); | ||
} | ||
|
||
if (resData == constant.VALUE_ALREADY_EXIST) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔ㅇ ㅓ라라??? 한번이 아니네 ... 흠 ㅋㅋ 🤔🤔
src/service/book.ts
Outdated
}); | ||
|
||
return { | ||
isLogin: isLogin, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ㅋㅋ
src/service/book.ts
Outdated
}); | ||
|
||
return { | ||
isLogin: isLogin, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
잉?
…/booktez-server into fix/non-member-logic
✅ PR check list
🌈 PR 요약
📌 변경 사항
Linked Issue
close #80