From 9ba41dd7f7120487040b2f2c7c799c54f5a2f6bb Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Fri, 8 Nov 2019 16:39:37 +0100 Subject: [PATCH] add columns for update on duplicate real estate --- app/helpers/db/realEstate.js | 37 +++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/app/helpers/db/realEstate.js b/app/helpers/db/realEstate.js index fd9f086..0282645 100644 --- a/app/helpers/db/realEstate.js +++ b/app/helpers/db/realEstate.js @@ -26,7 +26,42 @@ const bulkUpsertRealEstates = async realEstateData => { "gardenSize", "adStatus", "updatedAt", - "renewedDate" + "renewedDate", + "numberOfRooms", + "numberOfFloors", + "floor", + "accessRoadType", + "heatingType", + "furnishingType", + "balcony", + "newBuilding", + "elevator", + "water", + "electricity", + "drainageSystem", + "registeredInZkBooks", + "recentlyAdapted", + "parking", + "garage", + "gas", + "antiTheftDoor", + "airCondition", + "phoneConnection", + "cableTV", + "internet", + "basementAttic", + "storeRoom", + "videoSurveillance", + "alarm", + "suitableForStudents", + "includingBills", + "animalsAllowed", + "pool", + "urbanPlanPermit", + "buildingPermit", + "utilityConnection", + "distanceToRiver", + "numberOfViewsAgency" ]; const order = [["updatedAt", "desc"]];