diff --git a/app.ts b/app.ts index 8722da1..08cc1b5 100644 --- a/app.ts +++ b/app.ts @@ -14,19 +14,24 @@ import archiveConfig from './src/config/archiveManagerConfig'; (async () => { - const archiveHandler: archiveManager = new archiveManager({ + cron.schedule('0 0 * * *', async () => { - githubUsers : await axiosGet(archiveConfig.urlGitHubUsers) + // initialize object < + const archiveHandler: archiveManager = new archiveManager({ - }); - - const archive: Archive = await archiveHandler.getArchive(); - await archiveHandler.setArchive({archive : archive}); + githubUsers : await axiosGet(archiveConfig.urlGitHubUsers) + + }); - // cron.schedule('0 0 * * *', async () => { + // > + + // build archive < + // publish archive < + const archive: Archive = await archiveHandler.getArchive(); + await archiveHandler.setArchive({archive : archive}); + // > - - // }); + }); })(); \ No newline at end of file