diff --git a/server/index.js b/server/index.js index 3baf6fd0..e7d546ee 100644 --- a/server/index.js +++ b/server/index.js @@ -31,7 +31,7 @@ function logMetricsMiddleware(req, res, next) { res.on('finish', () => { const userAgent = req.get('user-agent'); - db.RequestMetrics.create({ + db.Metrics.create({ isInternal: /node\-fetch/.test(userAgent), routePath: httpContext.get('routePath'), params: JSON.stringify(req.params),