V1.0.0-beta.17 Update 2
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2024-12-15 00:49:12 +01:00
parent 243ab5f55e
commit f7658eca22
15 changed files with 1457 additions and 501 deletions

View File

@@ -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}`);