Skip to content

Commit

Permalink
fix: wrong sort in history view #51
Browse files Browse the repository at this point in the history
  • Loading branch information
bayang committed Dec 8, 2022
1 parent 8752d3b commit a6cfa5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jelu-ui/src/components/History.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const getYears = () => {
const eventsForYear = () => {
if (currentYear.value !== null) {
updatePageLoading(true)
dataService.myReadingEvents(nonCurrentlyReadingEvents, undefined, undefined, undefined, `${currentYear.value}-01-01`, `${currentYear.value + 1}-01-01`, pageAsNumber.value - 1, perPage.value)
dataService.myReadingEvents(nonCurrentlyReadingEvents, undefined, undefined, undefined, `${currentYear.value}-01-01`, `${currentYear.value + 1}-01-01`, pageAsNumber.value - 1, perPage.value, 'endDate,desc')
.then(res => {
total.value = res.totalElements
yearEvents.value = res.content
Expand Down

0 comments on commit a6cfa5b

Please sign in to comment.