Remove deprecated index (until an async context allows support)
This commit is contained in:
parent
4395579fca
commit
0be8422e65
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||||
|
|
Loading…
Reference in a new issue