Fixed failing migration
This commit is contained in:
parent
4c1c0087c7
commit
1ff2c7afd9
1 changed files with 0 additions and 8 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue