12 lines
270 B
JavaScript
12 lines
270 B
JavaScript
const db = require("../models/index");
|
|
|
|
const currentRERequest = async req => {
|
|
const uniqueId = req.params["request_id"];
|
|
if (!uniqueId) return null;
|
|
|
|
return await db.RealEstateRequest.findOne({ where: { uniqueId } });
|
|
};
|
|
module.exports = {
|
|
currentRERequest
|
|
};
|