add method to find real estate by id

This commit is contained in:
Bilal Catic
2019-09-30 10:29:27 +02:00
parent 87a72be8fe
commit 54f7e4ba53

View File

@@ -36,6 +36,11 @@ const bulkUpsertRealEstates = async realEstateData => {
} }
}; };
module.exports = { const getRealEstateById = async id => {
bulkUpsertRealEstates return db.RealEstate.findByPk(id);
};
module.exports = {
bulkUpsertRealEstates,
getRealEstateById
}; };