Geocoding restricttions, added values for range finders, added confirmation email, and .env file
This commit is contained in:
15
app/controllers/unsubscribe.js
Normal file
15
app/controllers/unsubscribe.js
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
const { currentRERequest } = require('../helpers/url');
|
||||
|
||||
const getUnsubscribe = async (req, res) => {
|
||||
const request = await currentRERequest(req);
|
||||
request.subscribed = false;
|
||||
await request.save();
|
||||
|
||||
res.render('unsubscribe', { nextStep: '/vrstanekretnine' });
|
||||
};
|
||||
|
||||
|
||||
module.exports = {
|
||||
getUnsubscribe
|
||||
};
|
||||
Reference in New Issue
Block a user