Skip to content

Commit

Permalink
chore: disable unused route
Browse files Browse the repository at this point in the history
  • Loading branch information
wit03 committed Oct 10, 2024
1 parent ab87e6c commit 2a1a1ea
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/scripts/retropgf5-live-data/retropgf5-live-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,21 +140,21 @@ const DATA_DIR = ['data', 'retropgf5-live-data']
const CRON_TIMER: string | undefined = "0 0 */1 * * *"

async function Run() {
console.log("RetroPGF5 Live Data is starting . . .");
const fileName = "retropgf5-live-data.json"

try {
const client = createApolloClient();
const dataArray = await fetchAndProcessData(client);
// const dataArray: any[] = []
await Savefile(JSON.stringify(dataArray), DATA_DIR, fileName)
// console.log("save retropgf5 \n", dataArray)

} catch (error) {
console.error("An error occurred during the RetroPGF5 Live Data process:", error);

} finally {
console.log("RetroPGF5 Live Data process finished.");
}
// console.log("RetroPGF5 Live Data is starting . . .");
// const fileName = "retropgf5-live-data.json"

// try {
// const client = createApolloClient();
// const dataArray = await fetchAndProcessData(client);
// // const dataArray: any[] = []
// await Savefile(JSON.stringify(dataArray), DATA_DIR, fileName)
// // console.log("save retropgf5 \n", dataArray)

// } catch (error) {
// console.error("An error occurred during the RetroPGF5 Live Data process:", error);

// } finally {
// console.log("RetroPGF5 Live Data process finished.");
// }
}
export {Run, DATA_DIR, CRON_TIMER}

0 comments on commit 2a1a1ea

Please sign in to comment.