From d8b1f441a3050a09d8bdf15077eb88bc9596f0d7 Mon Sep 17 00:00:00 2001 From: CaoMeiYouRen <996881204@qq.com> Date: Fri, 22 Nov 2024 17:45:19 +0800 Subject: [PATCH] =?UTF-8?q?chore(README):=20=E6=9B=B4=E6=96=B0=20README=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=AD=E7=9A=84=20node=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E8=A6=81=E6=B1=82=E4=B8=BA=20>=3D20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- src/services/tasks/tasks.service.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 4dcacd8..d4da9c6 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ https://rss-demo.cmyr.dev ## 📦 依赖要求 -- node >=16 +- node >=20 ## 🚀 部署 diff --git a/src/services/tasks/tasks.service.ts b/src/services/tasks/tasks.service.ts index 492c8ac..dd86d41 100644 --- a/src/services/tasks/tasks.service.ts +++ b/src/services/tasks/tasks.service.ts @@ -865,7 +865,6 @@ export class TasksService implements OnApplicationBootstrap { this.logger.warn(`bt 服务器当前的磁盘空间 ${dataFormat(freeSpaceOnDisk)} 小于 保留磁盘的最小值 ${dataFormat(minDiskSize)} ,正在自动删除中`) // 按 下载体积降序 const torrents = await qBittorrent.listTorrents({ sort: 'downloaded', reverse: true }) - // torrents.sort((a, b) => b?.downloaded - a?.downloaded) const torrent = torrents.at(0) if (torrent?.downloaded) { // 如果 torrent 存在且下载的体积大于 0,则删除 await this.tryRemoveTorrent(qBittorrent, torrent.hash)