fix comparison (thanks linter)

This commit is contained in:
dakkar 2024-08-06 19:51:11 +01:00
parent 03d9288f44
commit 9672f0b48e

View file

@ -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);
}
}