-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactor/separating files #25
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.
수고하셨습니다~ 마지막으로 Comment 확인해주세요 :)
).report(userData.subId, numericId) | ||
: 1; | ||
})() | ||
: 1; |
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.
삼항 연산자 중복보다는 if else 문을 쓰는 게 더 좋지 않을까요?
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.
if else가 아닌 ||
는 어떨까요
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.
changeStatus === "REPORTED" && await (async () => {
await algorithmRepo.setAlgorithmStatus(numericId, reason, "REPORTED");
!!userData.subId && getCustomRepository(
ReportAlgorithmRepository,
event.connectionName,
).report(userData.subId, numericId)
})();
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.
if(changeStatus === "REPORTED"){
await algorithmRepo.setAlgorithmStatus(numericId, reason, "REPORTED");
!!userData.subId && getCustomRepository(
ReportAlgorithmRepository,
event.connectionName,
).report(userData.subId, numericId)
}
이런 형태도 괜찮을려나요
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.
어라 await도 빠졌네요 :D
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.
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.
후자 좋은 것 같아요
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.
화긴
Co-authored-by: Seolin <[email protected]>
…im/Bamboo-API into refactor/Separating_files
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.
LGTM
파일 분할