From 3822c37fa0029571b56828021c756b72309dae66 Mon Sep 17 00:00:00 2001 From: whyour Date: Sat, 19 Oct 2024 00:18:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=99=BB=E5=BD=95=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/services/user.ts b/back/services/user.ts index 92d6fb08..79b9146f 100644 --- a/back/services/user.ts +++ b/back/services/user.ts @@ -217,7 +217,7 @@ export default class UserService { (a, b) => b.info!.timestamp! - a.info!.timestamp!, ); if (result.length > 100) { - const ids = result.slice(0, result.length - 100).map((x) => x.id!); + const ids = result.slice(100).map((x) => x.id!); await SystemModel.destroy({ where: { id: ids }, });