Commit b537ff49 authored by nanahira's avatar nanahira

fix empty clear

parent f0300691
Pipeline #15645 passed with stages
in 8 minutes and 45 seconds
...@@ -159,7 +159,8 @@ const UploadToChallonge = async function () { ...@@ -159,7 +159,8 @@ const UploadToChallonge = async function () {
await axios.delete(`https://api.challonge.com/v1/tournaments/${challonge_config.tournament_id}/participants/clear.json`, { await axios.delete(`https://api.challonge.com/v1/tournaments/${challonge_config.tournament_id}/participants/clear.json`, {
params: { params: {
api_key: challonge_config.api_key api_key: challonge_config.api_key
} },
validateStatus: () => true,
}); });
sendResponse("开始上传玩家列表至 Challonge。"); sendResponse("开始上传玩家列表至 Challonge。");
for (const chunk of _.chunk(player_list, 10)) { for (const chunk of _.chunk(player_list, 10)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment