Remove deprecated index (until an async context allows support)

This commit is contained in:
Shawn 2018-10-08 19:15:44 -05:00
parent 4395579fca
commit 0be8422e65

View file

@ -31,7 +31,7 @@ function logMetricsMiddleware(req, res, next) {
res.on('finish', () => { res.on('finish', () => {
const userAgent = req.get('user-agent'); const userAgent = req.get('user-agent');
db.RequestMetrics.create({ db.Metrics.create({
isInternal: /node\-fetch/.test(userAgent), isInternal: /node\-fetch/.test(userAgent),
routePath: httpContext.get('routePath'), routePath: httpContext.get('routePath'),
params: JSON.stringify(req.params), params: JSON.stringify(req.params),