This commit is contained in:
Albert Juhé Lluveras 2019-01-17 22:14:12 +01:00 committed by GitHub
parent 5dcea1af6f
commit 059cd0ef0d
3 changed files with 3 additions and 3 deletions

View File

@ -262,7 +262,7 @@ export default compose(
const tableQuery = {
orderby: query.orderby || 'date',
order: query.order || 'asc',
order: query.order || 'desc',
page: query.page || 1,
per_page: query.per_page || QUERY_DEFAULTS.pageSize,
after: appendTimestamp( datesFromQuery.primary.after, 'start' ),

View File

@ -222,7 +222,7 @@ export default compose(
const tableQuery = {
interval: 'day',
orderby: query.orderby || 'date',
order: query.order || 'asc',
order: query.order || 'desc',
page: query.page || 1,
per_page: query.per_page || QUERY_DEFAULTS.pageSize,
after: appendTimestamp( datesFromQuery.primary.after, 'start' ),

View File

@ -320,7 +320,7 @@ export function getReportTableQuery( endpoint, urlQuery, query ) {
return {
orderby: urlQuery.orderby || 'date',
order: urlQuery.order || 'asc',
order: urlQuery.order || 'desc',
after: appendTimestamp( datesFromQuery.primary.after, 'start' ),
before: appendTimestamp( datesFromQuery.primary.before, 'end' ),
page: urlQuery.page || 1,