|
@ -71,11 +71,11 @@ class LinkController extends SiteController { |
|
|
/* |
|
|
/* |
|
|
* Do these jobs in parallel so the total work gets done faster |
|
|
* Do these jobs in parallel so the total work gets done faster |
|
|
*/ |
|
|
*/ |
|
|
const jobs = [ |
|
|
// const jobs = [
|
|
|
linkService.recordVisit(res.locals.link, req), |
|
|
// linkService.recordVisit(res.locals.link, req),
|
|
|
resourceService.recordView(req, 'Link', res.locals.link._id), |
|
|
// resourceService.recordView(req, 'Link', res.locals.link._id),
|
|
|
]; |
|
|
// ];
|
|
|
await Promise.all(jobs); // we don't care about any specific results
|
|
|
// await Promise.all(jobs); // we don't care about any specific results
|
|
|
|
|
|
|
|
|
res.redirect(res.locals.link.href); // off you go!
|
|
|
res.redirect(res.locals.link.href); // off you go!
|
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|