apply prettier

This commit is contained in:
Bilal Catic
2020-02-20 19:46:39 +01:00
parent df2a962d0f
commit cff7cc2e9c
3 changed files with 9 additions and 13 deletions

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 = [];