From 739d626fdbf721a4a25c77174b0658f92001ea3e Mon Sep 17 00:00:00 2001 From: Alexander Onnikov Date: Fri, 30 Jan 2026 12:09:29 +0700 Subject: [PATCH] fix: do not write analytics event when no token Signed-off-by: Alexander Onnikov --- server/account/src/operations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/account/src/operations.ts b/server/account/src/operations.ts index dd653f0efc0..e0cc01c1a31 100644 --- a/server/account/src/operations.ts +++ b/server/account/src/operations.ts @@ -1666,9 +1666,9 @@ export async function getLoginInfoByToken ( } accountUuid = sub ?? account } catch (err: any) { - Analytics.handleError(err) if (token !== undefined) { // do not spam errors as this is expected when we issue request with no token + Analytics.handleError(err) ctx.error('Invalid token', { token, errMsg: err.message }) } switch (err.message) {