From c3bc2f86319e0e7d5d9d3b3fb6f1ff3869c574a8 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Tue, 25 Apr 2023 15:47:00 +0800 Subject: [PATCH] fix: maxTokenLength config --- src/lib/token/token-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/token/token-utils.js b/src/lib/token/token-utils.js index 8e46111..e9a9fa2 100644 --- a/src/lib/token/token-utils.js +++ b/src/lib/token/token-utils.js @@ -224,7 +224,7 @@ export default class TokenUtils { tokenList.push(token) if (tokenList.length > maxTokenLength) { - tokenList.splice(0, tokenList.length - 10) + tokenList.splice(0, tokenList.length - maxTokenLength) } await this.updateUserRecord({ -- GitLab