1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-02 13:52:46 +02:00

Add missing content for backend roadmap

This commit is contained in:
Kamran Ahmed
2023-03-30 16:34:39 +01:00
parent 7434ff71eb
commit 133642e05f
4 changed files with 104 additions and 4 deletions

View File

@@ -111,7 +111,11 @@ async function run() {
const topicTitle = group?.children?.controls?.control?.find(
(control) => control?.typeID === 'Label'
)?.properties?.text;
const currTopicUrl = topicId.replace(/^\d+-/g, '/').replace(/:/g, '/');
const currTopicUrl = topicId?.replace(/^\d+-/g, '/')?.replace(/:/g, '/');
if (!currTopicUrl) {
continue;
}
const contentFilePath = topicUrlToPathMapping[currTopicUrl];
if (!contentFilePath) {