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;
|
const { Article } = app.models;
|
||||||
|
|
||||||
return function shortLinkHandler(req, res, next) {
|
return function shortLinkHandler(req, res, next) {
|
||||||
const { query } = req;
|
|
||||||
const { shortId } = req.params;
|
const { shortId } = req.params;
|
||||||
|
|
||||||
log(req.origin);
|
|
||||||
log(query.refsource);
|
|
||||||
|
|
||||||
if (!shortId) {
|
if (!shortId) {
|
||||||
return res.redirect('/news');
|
return res.redirect('/news');
|
||||||
}
|
}
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
/* global describe it expect */
|
|
||||||
|
|
||||||
describe('client/src utilities', () => {
|
|
||||||
describe('No tests for utils', () => {
|
|
||||||
it('No tests for utils', () => {
|
|
||||||
expect(true);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
Reference in New Issue
Block a user