Simplify location search #27

Merged
bilal.catic merged 16 commits from simplify-location-search into master 2019-09-10 17:15:10 +02:00
Showing only changes of commit 7a18a89131 - Show all commits

View File

@@ -4,8 +4,7 @@ const currentRERequest = async req => {
const uniqueId = req.params["request_id"];
if (!uniqueId) return null;
const request = await db.RealEstateRequest.findOne({ where: { uniqueId } });
return request;
return await db.RealEstateRequest.findOne({ where: { uniqueId } });
};
module.exports = {
currentRERequest