hotfix: this time for real
This commit is contained in:
parent
f6dd580894
commit
cc64fb1c32
@ -54,11 +54,11 @@ module.exports = async (dbConn) => {
|
||||
regions[k].rain_days = arrayFormatting(regions[k].rain_days);
|
||||
regions[k].sun_hours = arrayFormatting(regions[k].sun_hours);
|
||||
regions[k].humidity = arrayFormatting(regions[k].humidity);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
return regions.map(region => {
|
||||
/*
|
||||
const emptyArr = Array.from({ length: 12 }, () => null)
|
||||
if (region.avg_price_relative === null) region.avg_price_relative = undefined
|
||||
if (region.temperature_mean === null) region.temperature_mean = undefined
|
||||
@ -68,7 +68,7 @@ module.exports = async (dbConn) => {
|
||||
if (region.rain_days === null) region.rain_days = undefined
|
||||
if (region.sun_hours === null) region.sun_hours = undefined
|
||||
if (region.humidity === null) region.humidity = undefined
|
||||
|
||||
*/
|
||||
region.tags = tags.filter(tag => tag.region_id === region.region_id).map(tag => {
|
||||
delete tag.region_id
|
||||
return tag
|
||||
@ -76,8 +76,5 @@ module.exports = async (dbConn) => {
|
||||
|
||||
return region
|
||||
});
|
||||
*/
|
||||
|
||||
return regions;
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user