1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-21 12:29:36 +02:00

Merge pull request #216 from pawelmalak/fix

Fixed failing migration
This commit is contained in:
pawelmalak 2021-11-20 11:36:39 +01:00 committed by GitHub
commit f963c1980b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) => {