Skip to content

Commit 1a11225

Browse files
committed
Override old prereq field on new push
1 parent 7d71fe7 commit 1a11225

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dist/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -29726,8 +29726,8 @@ async function getChallengeMetadata(category, name) {
2972629726
max: data.maxPoints ?? 500
2972729727
},
2972829728
tiebreakEligible: data.tiebreakEligible ?? true,
29729-
prereqs: data.prereqs,
29730-
difficulty: data.difficulty
29729+
prereqs: data.prereqs ?? [],
29730+
difficulty: data.difficulty // TODO: override with default?
2973129731
};
2973229732
return ret;
2973329733
}

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export type UploadData = {
2424
max: number
2525
},
2626
tiebreakEligible: boolean,
27-
prereqs?: string[],
27+
prereqs: string[],
2828
difficulty?: string,
2929
}
3030

src/challs.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ export async function getChallengeMetadata(category: string, name: string) {
5656
max: data.maxPoints ?? 500
5757
},
5858
tiebreakEligible: data.tiebreakEligible ?? true,
59-
prereqs: data.prereqs,
60-
difficulty: data.difficulty
59+
prereqs: data.prereqs ?? [],
60+
difficulty: data.difficulty // TODO: override with default?
6161
}
6262
return ret;
6363
}

0 commit comments

Comments
 (0)