ardasen commited on
Commit
02f7fe6
·
verified ·
1 Parent(s): 4f75916

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +6 -0
server.js CHANGED
@@ -31,9 +31,15 @@ cron.schedule('*/15 * * * *', async () => {
31
  // Update driver standings for the current season
32
  await fetchDataAndUpdateCache(`${ERGAST_API_BASE_URL}current/driverStandings.json`, 'driverStandings-current');
33
 
 
 
 
34
  // Update constructor standings for the current season
35
  await fetchDataAndUpdateCache(`${ERGAST_API_BASE_URL}current/constructorStandings.json`, 'constructorStandings-current');
36
 
 
 
 
37
  // Update race results for 2024 season, rounds 1 to 24
38
  for (let round = 1; round <= 24; round++) {
39
  await fetchDataAndUpdateCache(`${ERGAST_API_BASE_URL}current/${round}/results.json`, `raceResults-2024-${round}`);
 
31
  // Update driver standings for the current season
32
  await fetchDataAndUpdateCache(`${ERGAST_API_BASE_URL}current/driverStandings.json`, 'driverStandings-current');
33
 
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}`);