From e9a37e0598a03664ceda2736e894c6fd6b3b7e23 Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 17 Mar 2022 01:08:13 +0100 Subject: [PATCH] tracking unknown version --- backend/api/routes/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/api/routes/index.ts b/backend/api/routes/index.ts index 2feeeef03..298d52fd0 100644 --- a/backend/api/routes/index.ts +++ b/backend/api/routes/index.ts @@ -47,10 +47,8 @@ function addApiRoutes(app: Application): void { return; } - const clientVersion = req.headers["client-version"]; - if (clientVersion) { - recordClientVersion(clientVersion.toString()); - } + const clientVersion = req.headers["client-versio"]; + recordClientVersion(clientVersion?.toString() ?? "unknown"); requestsProcessed++; next();