mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
fixing rare case when immowelt is not providing size
This commit is contained in:
@@ -3,7 +3,7 @@ const config = require('../../conf/config.json');
|
|||||||
const utils = require('../utils');
|
const utils = require('../utils');
|
||||||
|
|
||||||
function normalize(o) {
|
function normalize(o) {
|
||||||
const size = o.size.split('Wohnfläche')[1].replace(' (ca.) ', '');
|
const size = o.size == null ? '--- m²' || o.size.split('Wohnfläche')[1].replace(' (ca.) ', '');
|
||||||
const address = o.address;
|
const address = o.address;
|
||||||
|
|
||||||
return Object.assign(o, { size, address });
|
return Object.assign(o, { size, address });
|
||||||
|
|||||||
Reference in New Issue
Block a user