From 42e32adf869afcaaff13a3f283a590741611558d Mon Sep 17 00:00:00 2001 From: xion Date: Tue, 15 Oct 2024 19:26:51 +0800 Subject: [PATCH] remove external --- rollup.config.js | 2 +- src/route/app/list.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index bd0ca1e..392993f 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -25,5 +25,5 @@ export default { declaration: false, }), // 使用 @rollup/plugin-typescript 处理 TypeScript 文件 ], - external: ['ws'], + // external: ['ws'], }; diff --git a/src/route/app/list.ts b/src/route/app/list.ts index 83dbab3..6330b5e 100644 --- a/src/route/app/list.ts +++ b/src/route/app/list.ts @@ -63,7 +63,9 @@ app }) .define(async (ctx) => { const keys = await redis.keys('user:app:*'); - await redis.del(...keys); + if (keys.length > 0) { + await redis.del(...keys); + } fs.rmSync(fileStore, { recursive: true }); ctx.body = {