trends: reverse the history dates

This commit is contained in:
Alex Gleason 2024-06-02 19:07:10 -05:00
parent 133a684d32
commit 7e44368c08
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ export async function getTrendingTags(store: NStore, tagName: string): Promise<T
const now = new Date();
const lastWeek = new Date(now.getTime() - Time.days(7));
const dates = generateDateRange(lastWeek, now);
const dates = generateDateRange(lastWeek, now).reverse();
return Promise.all(tags.map(async ([_, value]) => {
const filters = dates.map((date) => ({