Browse Source

Fixed failing migration

Paweł Malak 3 năm trước cách đây
mục cha
commit
1ff2c7afd9
1 tập tin đã thay đổi với 0 bổ sung8 xóa
  1. 0 8
      db/migrations/03_weather.js

+ 0 - 8
db/migrations/03_weather.js

@@ -1,7 +1,5 @@
 const { DataTypes } = require('sequelize');
 const { DataTypes } = require('sequelize');
 const { INTEGER, FLOAT } = DataTypes;
 const { INTEGER, FLOAT } = DataTypes;
-const loadConfig = require('../../utils/loadConfig');
-const getExternalWeather = require('../../utils/getExternalWeather');
 
 
 const up = async (query) => {
 const up = async (query) => {
   await query.addColumn('weather', 'humidity', {
   await query.addColumn('weather', 'humidity', {
@@ -15,12 +13,6 @@ const up = async (query) => {
   await query.addColumn('weather', 'windM', {
   await query.addColumn('weather', 'windM', {
     type: FLOAT,
     type: FLOAT,
   });
   });
-
-  const { WEATHER_API_KEY: secret } = await loadConfig();
-
-  if (secret) {
-    await getExternalWeather();
-  }
 };
 };
 
 
 const down = async (query) => {
 const down = async (query) => {