From 1ff2c7afd9d481ecf4cd25ac3d07215fdea02a65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Malak?= Date: Sat, 20 Nov 2021 11:19:53 +0100 Subject: [PATCH] Fixed failing migration --- db/migrations/03_weather.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/db/migrations/03_weather.js b/db/migrations/03_weather.js index bba45df..2010745 100644 --- a/db/migrations/03_weather.js +++ b/db/migrations/03_weather.js @@ -1,7 +1,5 @@ const { DataTypes } = require('sequelize'); const { INTEGER, FLOAT } = DataTypes; -const loadConfig = require('../../utils/loadConfig'); -const getExternalWeather = require('../../utils/getExternalWeather'); const up = async (query) => { await query.addColumn('weather', 'humidity', { @@ -15,12 +13,6 @@ const up = async (query) => { await query.addColumn('weather', 'windM', { type: FLOAT, }); - - const { WEATHER_API_KEY: secret } = await loadConfig(); - - if (secret) { - await getExternalWeather(); - } }; const down = async (query) => {