Skip to content

Commit

Permalink
fix: mutate data after flag accepted
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Sep 2, 2022
1 parent 7312080 commit 3ef844f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions GZCTF/ClientApp/src/components/ChallengeDetailModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ const ChallengeDetailModal: FC<ChallengeDetailModalProps> = (props) => {
checkDataFlag(res.data)
clearInterval(polling)
setDisabled(false)
api.game.mutateGameChallenges(gameId)
api.game.mutateGameMyTeam(gameId)
}
})
.catch((err) => {
Expand Down
7 changes: 6 additions & 1 deletion GZCTF/ratelimit.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@
"HttpStatusCode": 429,
"GeneralRules": [
{
"Endpoint": "*:/api/challenges/submit/*",
"Endpoint": "post:/api/*/challenges/*",
"Period": "60s",
"Limit": 3
},
{
"Endpoint": "*:/api/*/container/*",
"Period": "10s",
"Limit": 4
},
{
"Endpoint": "*:/api/account/register",
"Period": "150s",
Expand Down

0 comments on commit 3ef844f

Please sign in to comment.