Added price history log.

This commit is contained in:
Naida Vatric
2020-01-21 23:12:04 +01:00
parent 8d3f001678
commit c6f0e039a5
4 changed files with 24 additions and 12 deletions

View File

@@ -63,9 +63,7 @@ const bulkUpsertRealEstates = async realEstateData => {
"numberOfViewsAgency"
];
const order = [["updatedAt", "desc"]];
//
//console.log("realEstateData:", realEstateData);
//
return await db.RealEstate.bulkCreate(realEstateData, {
updateOnDuplicate: fieldsToUpdateIfDuplicate,
returning: true,