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

blockchainTriggerFilter & deploy url check #93

Merged
merged 4 commits into from
Jan 22, 2024

Conversation

akastercomcom
Copy link
Collaborator

@akastercomcom akastercomcom commented Jan 4, 2024

blockchainTriggerFilter

  • 데이터가 실제로 작성되었는지를 통해 blockchain trigger 검증 로직을 추가했습니다.

deploy url check

  • deploy할 때 입력한 URL의 뒷부분에 '/'가 있으면 제거하는 코드를 추가했습니다.

getDataFromServiceRequest, getDataFromDepositRequest util로 이동.

  • getData들의 구현체를 util의 extractor.ts로 이동시켰습니다. (middleware에서도 사용하기 위해서)

await this.checkRunning

  • checkRunning이 비동기로 작동해 코드가 실행된 후 에러가 발생하는 문제가 발생해 await을 추가했습니다.

@akastercomcom akastercomcom requested a review from yoojinko January 4, 2024 06:12
this.cache.set(txHash, "in_progress", 500);
next();
_.isEqual(result, triggerValue) ? res.send("not from blockChain") : next();
Copy link
Collaborator

Choose a reason for hiding this comment

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

result와 triggerValue 가 같으면 not from blockChain인가요??

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

반대로 적은 것 같네요 수정하였습니다!

@yoojinko
Copy link
Collaborator

LGTM, Thanks!

@akastercomcom akastercomcom changed the base branch from main to develop January 22, 2024 04:57
@akastercomcom
Copy link
Collaborator Author

Thanks! now merged!

@akastercomcom akastercomcom merged commit cc26a96 into develop Jan 22, 2024
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