Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
refactor: APIの型の修正
Browse files Browse the repository at this point in the history
  • Loading branch information
laminne committed Dec 25, 2023
1 parent 342aded commit eff6ddc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# kcms

Matz葉ガニロボコン 大会運営支援ツール
Matz葉がにロボコン 大会運営支援ツール
[フロントエンドはこちら](https://github.com/poporonnet/kcmsf)

## 開発者向け情報
Expand Down
4 changes: 2 additions & 2 deletions src/match/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export class MatchController {
return {
id: i.id,
teams: {
Left: toTeamJSON(i.teams.Left),
Right: toTeamJSON(i.teams.Right),
left: toTeamJSON(i.teams.Left),
right: toTeamJSON(i.teams.Right),
},
matchType: i.matchType,
courseIndex: i.courseIndex,
Expand Down
3 changes: 1 addition & 2 deletions src/match/service/generate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const generateDummyData = (n: number): Entry[] => {
for (let i = 0; i < n; i++) {
res.push(
Entry.new({
id: "",
id: `${i}`,
teamName: `チーム ${i}`,
members: [`チーム${i}のメンバー1`],
isMultiWalk: true,
Expand All @@ -35,6 +35,5 @@ describe("予選の対戦表を正しく生成できる", () => {
if (Result.isErr(res)) {
return;
}
// ToDo: 全員2回試合しているかのチェック
});
});

0 comments on commit eff6ddc

Please sign in to comment.