Browse Source

comment out analytics

pull/1/head
Rob Colbert 3 years ago
parent
commit
f80ffa8534
  1. 10
      app/controllers/link.js

10
app/controllers/link.js

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

Loading…
Cancel
Save