From 5ef84916bbf7d77abc93ffa7494460a2eef03ba2 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 10 Jun 2023 19:59:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E4=BF=A1=E6=81=AF=E5=8F=AF=E8=83=BD=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=B4=A9=E6=BA=83=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/worker/dbService/modules/list/dbHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/worker/dbService/modules/list/dbHelper.ts b/src/main/worker/dbService/modules/list/dbHelper.ts index a38e85ed..8e32d272 100644 --- a/src/main/worker/dbService/modules/list/dbHelper.ts +++ b/src/main/worker/dbService/modules/list/dbHelper.ts @@ -28,7 +28,7 @@ export const queryAllUserList = () => { const list = createListQueryStatement().all() as LX.DBService.UserListInfo[] for (const info of list) { // 兼容v2.3.0之前版本插入数字类型的ID导致其意外在末尾追加 .0 的问题 - if (info.sourceListId?.endsWith('.0')) { + if (info.sourceListId?.endsWith?.('.0')) { info.sourceListId = info.sourceListId.replace(idFixRxp, '') } }