We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8587611 commit 930f11cCopy full SHA for 930f11c
docs/dev-notes/2025-09-23/contest-task-pair-mapping/plan.md
@@ -97,6 +97,7 @@ export async function createContestTaskPair(
97
98
if (existingRecord) {
99
console.log(`ContestTaskPair already exists: contestId=${contestId}, taskId=${taskId}`);
100
+ return
101
}
102
103
// 新規レコード作成
@@ -377,7 +378,7 @@ export async function getContestTaskPairs(): Promise<Map<string, string[]>> {
377
378
const map = new Map<string, string[]>();
379
380
for (const r of rows) {
- const arr = m.get(r.taskId) ?? [];
381
+ const arr = map.get(r.taskId) ?? [];
382
arr.push(r.contestId);
383
map.set(r.taskId, arr);
384
0 commit comments