Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
lxRbckl committed Sep 1, 2024
1 parent d7b1d1f commit 9931a48
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,68 +17,68 @@ import markdownConfig from './src/configs/markdownManagerConfig';

(async () => {

cron.schedule('0 0 * * *', async () => {
// cron.schedule('0 0 * * *', async () => {

// initialize objects <
const dataHandler: dataManager = new dataManager();
const octokitHandler: octokitManager = new octokitManager({
// initialize objects <
const dataHandler: dataManager = new dataManager();
const octokitHandler: octokitManager = new octokitManager({

githubUsers : await axiosGet(octokitConfig.urlGitHubUsers)
githubUsers : await axiosGet(octokitConfig.urlGitHubUsers)

});
const markdownHandler: markdownManager = new markdownManager({

elementResources : await axiosGet(markdownConfig.urlElementResources),
elementDescriptions : await axiosGet(markdownConfig.urlElementDescriptions)
});
const markdownHandler: markdownManager = new markdownManager({

});
elementResources : await axiosGet(markdownConfig.urlElementResources),
elementDescriptions : await axiosGet(markdownConfig.urlElementDescriptions)

// >
});

// fetch readme and build data <
// publish all elements from data <
await octokitHandler.fetchAllReadme({
// >

callback : ({file, hyperlink}) => {
// fetch readme and build data <
// publish all elements from data <
await octokitHandler.fetchAllReadme({

dataHandler.addProperties({
callback : ({file, hyperlink}) => {

readmeHyperlink : hyperlink,
readmeProperties : markdownHandler.extractProperties({file : file})
dataHandler.addProperties({

});
readmeHyperlink : hyperlink,
readmeProperties : markdownHandler.extractProperties({file : file})

}
});

});
}

await octokitHandler.publishAllReadme({
});

data : dataHandler.getData(),
callback : ({
await octokitHandler.publishAllReadme({

topic,
subject,
projects,
ecosystem
data : dataHandler.getData(),
callback : ({

}) => {
topic,
subject,
projects,
ecosystem

return markdownHandler.build({
}) => {

return markdownHandler.build({

topic : topic,
subject : subject,
projects : projects,
ecosystem : ecosystem
topic : topic,
subject : subject,
projects : projects,
ecosystem : ecosystem

});
});

}
}

});
});

// >
// >

});
// });

})();

0 comments on commit 9931a48

Please sign in to comment.