fix: remove unwanted stuff
This commit is contained in:
committed by
Stuart Taylor
parent
251212beea
commit
f9c4d2426c
@ -13,12 +13,8 @@ function createShortLinkHandler(app) {
|
||||
const { Article } = app.models;
|
||||
|
||||
return function shortLinkHandler(req, res, next) {
|
||||
const { query } = req;
|
||||
const { shortId } = req.params;
|
||||
|
||||
log(req.origin);
|
||||
log(query.refsource);
|
||||
|
||||
if (!shortId) {
|
||||
return res.redirect('/news');
|
||||
}
|
||||
|
Reference in New Issue
Block a user