From 4c409dd6c6df1f709b70977ad87c438e75d6fba8 Mon Sep 17 00:00:00 2001 From: dakkar Date: Tue, 6 Aug 2024 19:51:11 +0100 Subject: [PATCH] fix comparison (thanks linter) --- packages/backend/src/core/CustomEmojiService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/core/CustomEmojiService.ts b/packages/backend/src/core/CustomEmojiService.ts index dd5f79a22b..cd906a72af 100644 --- a/packages/backend/src/core/CustomEmojiService.ts +++ b/packages/backend/src/core/CustomEmojiService.ts @@ -144,7 +144,7 @@ export class CustomEmojiService implements OnApplicationShutdown { if (data.driveFile != null) { const file = await this.driveFilesRepository.findOneBy({ url: emoji.originalUrl, userHost: emoji.host ? emoji.host : IsNull() }); - if (file && file.id != data.driveFile.id) { + if (file && file.id !== data.driveFile.id) { await this.driveService.deleteFile(file, false, moderator ? moderator : undefined); } }