Skip to content

Commit

Permalink
projects: reduce isNew to 24 days
Browse files Browse the repository at this point in the history
  • Loading branch information
vdawg-git committed Feb 11, 2024
1 parent e3b22ef commit 7a37489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/api/projects.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export async function getCommunityRepos(): Promise<readonly CommunityRepo[]> {
updatedAt: repo.updated_at,
createdAt: repo.created_at,
isNew:
new Date(repo.created_at).getTime() > subDays(new Date(), 90).getTime(),
new Date(repo.created_at).getTime() > subDays(new Date(), 24).getTime(),
}))
.sort((a, b) =>
b.isNew ? 1
Expand Down

0 comments on commit 7a37489

Please sign in to comment.