Compare commits
No commits in common. "c898cb0b24e9df883784b6679d0642bcdd6fa432" and "96e25f716916d371f2407f82a4dd26635b361915" have entirely different histories.
c898cb0b24
...
96e25f7169
1 changed files with 0 additions and 8 deletions
|
@ -118,14 +118,6 @@ app.get('/calendar/:name', async (req, res) => {
|
|||
const stats = fs.statSync(icsFilePath);
|
||||
const lastModified = new Date(stats.mtime);
|
||||
const now = new Date();
|
||||
// Check if the file is older than one hour
|
||||
if (now - lastModified > 60 * 60 * 1000) {
|
||||
console .log('Refreshing calendar data...');
|
||||
|
||||
// Read the JSON file to get the source URL and other details
|
||||
const jsonData = JSON.parse(fs.readFileSync(jsonFilePath, 'utf8'));
|
||||
const { linkGroupName, calendars } = jsonData;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue