add method to find real estate by id
This commit is contained in:
@@ -36,6 +36,11 @@ const bulkUpsertRealEstates = async realEstateData => {
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
bulkUpsertRealEstates
|
||||
const getRealEstateById = async id => {
|
||||
return db.RealEstate.findByPk(id);
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
bulkUpsertRealEstates,
|
||||
getRealEstateById
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user