Create fetch wrapper with user agent #98

Merged
bilal.catic merged 3 commits from create-fetch-wrapper-with-user-agent into master 2020-02-20 20:58:33 +01:00
3 changed files with 9 additions and 13 deletions
Showing only changes of commit cff7cc2e9c - Show all commits

View File

@@ -399,7 +399,9 @@ class RentalCrawler {
); );
if (!publishedDateMoment.isValid()) { if (!publishedDateMoment.isValid()) {
throw { throw {
message: `Invalid published date : ${extractedData["re_realEstates_inserted"]}` message: `Invalid published date : ${
extractedData["re_realEstates_inserted"]
}`
}; };
} }
@@ -410,7 +412,9 @@ class RentalCrawler {
); );
if (!renewedDateMoment.isValid()) { if (!renewedDateMoment.isValid()) {
throw { throw {
message: `Invalid renewed date : ${extractedData["re_realEstates_edited"]}` message: `Invalid renewed date : ${
extractedData["re_realEstates_edited"]
}`
}; };
} }

View File

@@ -15,15 +15,7 @@ module.exports = (sequelize, DataTypes) => {
allowNull: false, allowNull: false,
defaultValue: { defaultValue: {
type: "Polygon", type: "Polygon",
coordinates: [ coordinates: [[[0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]],
[
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
]
],
crs: { type: "name", properties: { name: "EPSG:4326" } } crs: { type: "name", properties: { name: "EPSG:4326" } }
} }
}, },

View File

@@ -131,7 +131,7 @@ const notifyRequestsWithDailyOption = async () => {
}; };
const checkUpNotify = async () => { const checkUpNotify = async () => {
/* const searchRequestsForCheckUp = await findAllRequestsForCheckUp(); /* const searchRequestsForCheckUp = await findAllRequestsForCheckUp();
const asyncSendEmailActions = []; const asyncSendEmailActions = [];