diff --git a/app/helpers/url.js b/app/helpers/url.js index 78036c5..10512ff 100644 --- a/app/helpers/url.js +++ b/app/helpers/url.js @@ -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