From 799cc0d0980512da4478e32edec3e11c6d09b963 Mon Sep 17 00:00:00 2001 From: dakkar Date: Tue, 17 Dec 2024 10:06:30 +0000 Subject: [PATCH] pick lints --- packages/backend/src/server/web/FeedService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/web/FeedService.ts b/packages/backend/src/server/web/FeedService.ts index de22a0e80e..c9773dc231 100644 --- a/packages/backend/src/server/web/FeedService.ts +++ b/packages/backend/src/server/web/FeedService.ts @@ -104,13 +104,13 @@ export class FeedService { } // this logic is copied from NoteEntityService.hideNote - private compareDates(reference, createdAt: Date): boolean { + private compareDates(reference: number | null, createdAt: Date): boolean { if ((reference != null) && ( (reference <= 0 && (Date.now() - createdAt.getTime() > 0 - (reference * 1000))) || (reference > 0 && (createdAt.getTime() < reference * 1000)) ) - ) { + ) { return true; } return false;