From f8b3559a522614bf140e560ea980f6743b12b208 Mon Sep 17 00:00:00 2001 From: "codefactor-io[bot]" <47775046+codefactor-io[bot]@users.noreply.github.com> Date: Thu, 4 Jan 2024 01:59:45 +0700 Subject: [PATCH] [CodeFactor] chore: Apply fixes (#3) Co-authored-by: codefactor-io --- src/dashboard/summary/summary.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dashboard/summary/summary.service.ts b/src/dashboard/summary/summary.service.ts index a545f17..9551666 100644 --- a/src/dashboard/summary/summary.service.ts +++ b/src/dashboard/summary/summary.service.ts @@ -120,7 +120,8 @@ export class SummaryService { dbUsers.forEach((user) => { // 사용자가 최근 1년 이내에 접속했는지 확인합니다. if ( - new Date(user.registeredAt).getTime() > new Date(Date.now() - 1000 * 60 * 60 * 24 * 365).getTime() + new Date(user.registeredAt).getTime() > + new Date(Date.now() - 1000 * 60 * 60 * 24 * 365).getTime() ) { // 사용자가 접속한 월을 가져옵니다. const userMonth = new Date(user.registeredAt).getMonth();