-
Notifications
You must be signed in to change notification settings - Fork 2
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/#129 query issue #132
Fix/#129 query issue #132
Conversation
works ๊ด๋ จ ์ฟผ๋ฆฌ ์ถ์๋จ, ํ์ง๋ง 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.
์ฟผ๋ฆฌ์ง๋๋ฐ ๊ณ ์ ๋ง์ผ์ จ์ต๋๋ค...!!
firstWork = findWork(firstWorkId); | ||
if (firstWorkId == null || !dto.user().getActiveWorks().isEmpty()) { // User ๊ถํ ์๋ฌ | ||
firstWork = workRepository.findFirstByUserIdAndIsActiveOrderByCreatedAtDesc(dto.user().getId(), true) | ||
.orElse(Work.builder() |
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.
์๋ฌ์ ์ํฉ์ด ์๋๊ฐ์?! firstWorkId ๋ฐ์ดํฐ ์ ํฉ์ฑ์ด ๋ง์ง ์๋๋ฐ ๋๊ธฐ๋ ๊ฒ์ ์ข์ง ์์๋ณด์
๋๋ค!
์๋ฌ๋ฅผ ํฐ๋จ๋ ค์ ์ ํฉ์ฑ์ ๋ง์ถ๋๊ฒ ๋ง์๊ฑฐ ๊ฐ์์.
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.
๊ธฐ์กด ์ฝ๋๋ ์๋ฌ๋ฅผ ํฐ๋จ๋ฆฌ๋ ๊ฒ ์ด์๋๋ฐ,
์ด๋ ๊ฒ ๋๋ ํ๋ช
์ ์ ์ ๊ฐ ์๋ฌ์ผ ๋ชจ๋ ์ ์ ๊ฐ '๋ฐ๊ฒฌ-์ ์ '์๋น์ค๋ฅผ ์ง์
ํ์ง ๋ชปํ ์๋ ์๋ค๊ณ ์๊ฐํ์ต๋๋ค.
๋ฐ๋ผ์ ์๋ฌ๋ฅผ ํฐ๋จ๋ฆฌ์ง ์๊ณ , ์ผ๋จ ์ ์ ๊ถํ์ ๋ฐ๊พธ๋ ๊ฒ์ผ๋ก ์์ ํ์์ต๋๋ค!
try catch๋ก log๋ฅผ ๋์ฐ๋ ๋ฐฉ๋ฒ๋ ์๊ฒ ๋ค์ฉ ํน์ ๋ง์ํ์ ๋ถ๋ถ์ด ํ์๋ผ๋ฉด ์์ ํ์ฌ ํธ์ํ๊ฒ ์ต๋๋ค!
Related Issue ๐
Work Description โ๏ธ
PR Point ๐ธ