Skip to content

Commit

Permalink
인기공지 정렬 시 생성일 기준 7일 이내 공지 띄움
Browse files Browse the repository at this point in the history
  • Loading branch information
han299792 committed Nov 20, 2024
1 parent 17c5bdf commit 13c2c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notice/notice.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class NoticeRepository {
: {}),
...(orderBy === 'hot'
? {
updatedAt: {
createdAt: {
gte: dayjs().startOf('d').subtract(7, 'd').toDate(),
},
}
Expand Down

0 comments on commit 13c2c6d

Please sign in to comment.