mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-24 13:39:35 +02:00
Imporved logger
This commit is contained in:
parent
5ae4d6e7c4
commit
e3ed429da1
12 changed files with 89 additions and 55 deletions
|
@ -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;
|
Loading…
Add table
Add a link
Reference in a new issue