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