This commit is contained in:
@@ -17,6 +17,8 @@ const chalk = require('chalk');
|
||||
require('dotenv').config();
|
||||
const app = express();
|
||||
|
||||
app.set('trust proxy', 1);
|
||||
|
||||
require('./models/fileCreated.js');
|
||||
|
||||
let setup;
|
||||
@@ -95,7 +97,6 @@ cron.schedule('0 * * * *', async () => {
|
||||
}
|
||||
}
|
||||
|
||||
await fs.promises.writeFile(path.join(__dirname, 'file_info.json'), JSON.stringify(fileInfo, null, 2), 'utf8');
|
||||
logger.info('Successfully checked file expirations and updated file_info.json');
|
||||
} catch (err) {
|
||||
ErrorLogger.error(`Failed to check file expirations: ${err}`);
|
||||
|
||||
Reference in New Issue
Block a user