Skip to content
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

Merged
merged 5 commits into from
Apr 29, 2022
Merged

Conversation

sunrabbit123
Copy link
Member

파일 분할

Copy link
Member

@iseolin76 iseolin76 left a 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;
Copy link
Member

Choose a reason for hiding this comment

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

삼항 연산자 중복보다는 if else 문을 쓰는 게 더 좋지 않을까요?

Copy link
Member Author

Choose a reason for hiding this comment

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

if else가 아닌 ||는 어떨까요

Copy link
Member Author

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)
      })();

Copy link
Member Author

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)
}

이런 형태도 괜찮을려나요

Copy link
Member Author

Choose a reason for hiding this comment

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

어라 await도 빠졌네요 :D

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

후자 좋은 것 같아요

Copy link
Member Author

Choose a reason for hiding this comment

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

화긴

@iseolin76 iseolin76 self-requested a review April 28, 2022 23:09
Copy link
Member

@iseolin76 iseolin76 left a comment

Choose a reason for hiding this comment

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

LGTM

@sunrabbit123 sunrabbit123 merged commit d3b9300 into develop Apr 29, 2022
@sunrabbit123 sunrabbit123 deleted the refactor/Separating_files branch April 29, 2022 00:54
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.

2 participants