refactor: remove isPrivate (#61952)

This commit is contained in:
Oliver Eyton-Williams
2025-08-27 19:15:36 +02:00
committed by GitHub
parent 918e0abb9d
commit 12b5905c60
34 changed files with 208 additions and 258 deletions
-1
View File
@@ -45,7 +45,6 @@ exports.buildChallenges = async function buildChallenges() {
}, []);
const builtChallenges = blocks
.filter(block => !block.isPrivate)
.map(({ challenges }) => challenges)
.reduce((accu, current) => accu.concat(current), []);
return builtChallenges;
@@ -102,8 +102,6 @@ exports.createChallengePages = function (
id,
isLastChallengeInBlock
} = node.challenge;
// TODO: challengeType === 7 and isPrivate are the same, right? If so, we
// should remove one of them.
createPage({
path: slug,