diff --git a/src/repositories/history.repositories.ts b/src/repositories/history.repositories.ts index 5d9998e..0e469b4 100644 --- a/src/repositories/history.repositories.ts +++ b/src/repositories/history.repositories.ts @@ -17,7 +17,7 @@ export const getMostTagged = async (userId: bigint, year: number, month: number) where: { AND: [ {userId: userId}, - {updatedAt: { + {createdAt: { lt: nextMonth, gte: currentMonth }}