From 8615c4bb95e84b16be29242f663917e5fb09ef3e Mon Sep 17 00:00:00 2001 From: tamaina Date: Thu, 13 Apr 2023 11:27:05 +0000 Subject: [PATCH] fix DriveService.ts --- packages/backend/src/core/DriveService.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend/src/core/DriveService.ts b/packages/backend/src/core/DriveService.ts index bfe3816e364f..65b4c24ca6d9 100644 --- a/packages/backend/src/core/DriveService.ts +++ b/packages/backend/src/core/DriveService.ts @@ -420,6 +420,7 @@ export class DriveService { for (const fileId of exceedFileIds) { const file = await this.driveFilesRepository.findOneBy({ id: fileId }); + if (file == null) continue; this.deleteFile(file, true); } }