From 0be8422e6526e83ba798b9a016dcad5cd6f3b7eb Mon Sep 17 00:00:00 2001 From: Shawn Date: Mon, 8 Oct 2018 19:15:44 -0500 Subject: [PATCH] Remove deprecated index (until an async context allows support) --- server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),