mirror of
https://github.com/pawelmalak/flame.git
synced 2026-03-10 22:43:11 +08:00
Imporved logger
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
const { Op } = require('sequelize');
|
||||
const Weather = require('../models/Weather');
|
||||
const Logger = require('./Logger');
|
||||
const logger = new Logger();
|
||||
|
||||
const clearWeatherData = async () => {
|
||||
const weather = await Weather.findOne({
|
||||
@@ -16,7 +18,7 @@ const clearWeatherData = async () => {
|
||||
})
|
||||
}
|
||||
|
||||
console.log('Old weather data was deleted');
|
||||
logger.log('Old weather data was deleted');
|
||||
}
|
||||
|
||||
module.exports = clearWeatherData;
|
||||
Reference in New Issue
Block a user