mirror of
https://github.com/pawelmalak/flame.git
synced 2026-02-28 09:23:12 +08:00
Removed additional weather logging
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
const { Op } = require('sequelize');
|
||||
const Weather = require('../models/Weather');
|
||||
const Logger = require('./Logger');
|
||||
const logger = new Logger();
|
||||
const loadConfig = require('./loadConfig');
|
||||
|
||||
const clearWeatherData = async () => {
|
||||
const { WEATHER_API_KEY: secret } = await loadConfig();
|
||||
|
||||
const weather = await Weather.findOne({
|
||||
order: [['createdAt', 'DESC']],
|
||||
});
|
||||
@@ -20,10 +15,6 @@ const clearWeatherData = async () => {
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
if (secret) {
|
||||
logger.log('Old weather data was deleted');
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = clearWeatherData;
|
||||
|
||||
Reference in New Issue
Block a user