mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
trends: reverse the history dates
This commit is contained in:
parent
133a684d32
commit
7e44368c08
1 changed files with 1 additions and 1 deletions
|
|
@ -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) => ({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue