Skip to content

Commit

Permalink
Merge pull request #66 from Tekken-Supporter/feature/sw0501
Browse files Browse the repository at this point in the history
Modify: 비동기 처리
  • Loading branch information
sw0501 authored Nov 29, 2023
2 parents 7b42cdf + d6997d5 commit bf7dc25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions routes/challenge.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,6 @@ router.post('/result',async(req,res)=>{
});
}

updateWinrate(challenger);
updateWinrate(contender);


if(score_challenger === 3){
//티어 변동
Expand Down Expand Up @@ -415,6 +412,9 @@ router.post('/result',async(req,res)=>{
})
}

updateWinrate(challenger);
updateWinrate(contender);

return res.status(200).json({
status: "ok",
message: "매치 결과 업데이트 완료"
Expand Down

0 comments on commit bf7dc25

Please sign in to comment.