Skip to content

Commit

Permalink
fix: filter_sort_order
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon committed Mar 21, 2023
1 parent b8e28a2 commit c0fbaa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/importDate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ export const importDate = async (piwikApi: any, date: Date, filterOffset = 0): P
method: "Live.getLastVisitsDetails",
period: "day",
date: isoDate(date),
minTimestamp: isoDate(new Date()) === isoDate(date) ? date.getTime() / 1000 : undefined, // if today, dont go further (??)
// minTimestamp: isoDate(new Date()) === isoDate(date) ? date.getTime() / 1000 : undefined, // if today, dont go further (??)
filter_limit: limit,
filter_offset: offset,
filter_sort_order: "desc",
filter_sort_order: "asc",
idSite: MATOMO_SITE,
},
(err: Error, visits: Visit[] = []) => {
Expand Down

0 comments on commit c0fbaa4

Please sign in to comment.