Skip to content

Commit 930f11c

Browse files
committed
✏️ Fix typo (#2627)
1 parent 8587611 commit 930f11c

File tree

1 file changed

+2
-1
lines changed
  • docs/dev-notes/2025-09-23/contest-task-pair-mapping

1 file changed

+2
-1
lines changed

docs/dev-notes/2025-09-23/contest-task-pair-mapping/plan.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export async function createContestTaskPair(
9797

9898
if (existingRecord) {
9999
console.log(`ContestTaskPair already exists: contestId=${contestId}, taskId=${taskId}`);
100+
return
100101
}
101102

102103
// 新規レコード作成
@@ -377,7 +378,7 @@ export async function getContestTaskPairs(): Promise<Map<string, string[]>> {
377378
const map = new Map<string, string[]>();
378379

379380
for (const r of rows) {
380-
const arr = m.get(r.taskId) ?? [];
381+
const arr = map.get(r.taskId) ?? [];
381382
arr.push(r.contestId);
382383
map.set(r.taskId, arr);
383384
}

0 commit comments

Comments
 (0)