Commit 60f85174 authored by nanahira's avatar nanahira

fix

parent e08d5dee
...@@ -114,6 +114,7 @@ export class YGOTournamentPlugin { ...@@ -114,6 +114,7 @@ export class YGOTournamentPlugin {
.info( .info(
`Cleaned remaining match for player ${participant.participant.name}.`, `Cleaned remaining match for player ${participant.participant.name}.`,
); );
}
await this.ctx.http.delete( await this.ctx.http.delete(
`${this.config.tournament.getChallongeUrl()}/participants/${ `${this.config.tournament.getChallongeUrl()}/participants/${
participant.participant.id participant.participant.id
...@@ -128,7 +129,6 @@ export class YGOTournamentPlugin { ...@@ -128,7 +129,6 @@ export class YGOTournamentPlugin {
await this.deleteChallongeCache(); await this.deleteChallongeCache();
return '退赛成功。'; return '退赛成功。';
} }
}
private async onUserGetCurrentMatch(userId: string) { private async onUserGetCurrentMatch(userId: string) {
const tournament = await this.fetchChallongeData(); const tournament = await this.fetchChallongeData();
......
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