Update server.js
Browse files
server.js
CHANGED
|
@@ -34,12 +34,16 @@ cron.schedule('*/15 * * * *', async () => {
|
|
| 34 |
// Update driver standings for the current season
|
| 35 |
await fetchDataAndUpdateCache(`${ERGAST_API_BASE_URL}2024/driverStandings.json`, 'driverStandings-2024');
|
| 36 |
|
|
|
|
|
|
|
| 37 |
// Update constructor standings for the current season
|
| 38 |
await fetchDataAndUpdateCache(`${ERGAST_API_BASE_URL}current/constructorStandings.json`, 'constructorStandings-current');
|
| 39 |
|
| 40 |
// Update constructor standings for the current season
|
| 41 |
await fetchDataAndUpdateCache(`${ERGAST_API_BASE_URL}2024/constructorStandings.json`, 'constructorStandings-2024');
|
| 42 |
|
|
|
|
|
|
|
| 43 |
// Update race results for 2024 season, rounds 1 to 24
|
| 44 |
// for (let round = 1; round <= 24; round++) {
|
| 45 |
// await fetchDataAndUpdateCache(`${ERGAST_API_BASE_URL}current/${round}/results.json`, `raceResults-2024-${round}`);
|
|
|
|
| 34 |
// Update driver standings for the current season
|
| 35 |
await fetchDataAndUpdateCache(`${ERGAST_API_BASE_URL}2024/driverStandings.json`, 'driverStandings-2024');
|
| 36 |
|
| 37 |
+
await fetchDataAndUpdateCache(`${ERGAST_API_BASE_URL}2024/driverStandings.json`, 'driverStandings');
|
| 38 |
+
|
| 39 |
// Update constructor standings for the current season
|
| 40 |
await fetchDataAndUpdateCache(`${ERGAST_API_BASE_URL}current/constructorStandings.json`, 'constructorStandings-current');
|
| 41 |
|
| 42 |
// Update constructor standings for the current season
|
| 43 |
await fetchDataAndUpdateCache(`${ERGAST_API_BASE_URL}2024/constructorStandings.json`, 'constructorStandings-2024');
|
| 44 |
|
| 45 |
+
await fetchDataAndUpdateCache(`${ERGAST_API_BASE_URL}2024/constructorStandings.json`, 'constructorStandings');
|
| 46 |
+
|
| 47 |
// Update race results for 2024 season, rounds 1 to 24
|
| 48 |
// for (let round = 1; round <= 24; round++) {
|
| 49 |
// await fetchDataAndUpdateCache(`${ERGAST_API_BASE_URL}current/${round}/results.json`, `raceResults-2024-${round}`);
|