From e123236733c58235656252ac4be3d1b4693a5e32 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Sun, 15 Oct 2023 02:17:00 +0200 Subject: [PATCH] chore: lint --- packages/backend/src/core/NoteDeleteService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/core/NoteDeleteService.ts b/packages/backend/src/core/NoteDeleteService.ts index 6e8622468..f6a9232b3 100644 --- a/packages/backend/src/core/NoteDeleteService.ts +++ b/packages/backend/src/core/NoteDeleteService.ts @@ -68,7 +68,7 @@ export class NoteDeleteService { await this.notesRepository.decrement({ id: note.replyId }, 'repliesCount', 1); } - if (note.renoteId && note.renote?.userId != user.id && note.text == null && !note.hasPoll && (note.fileIds == null || note.fileIds.length === 0)) { + if (note.renoteId && note.renote?.userId !== user.id && note.text == null && !note.hasPoll && (note.fileIds == null || note.fileIds.length === 0)) { await this.notesRepository.decrement({ id: note.renoteId }, 'renoteCount', 1); }