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 = {
bulkUpsertRealEstates
const getRealEstateById = async id => {
return db.RealEstate.findByPk(id);
};
module.exports = {
bulkUpsertRealEstates,
getRealEstateById
};