Skip to content

Commit

Permalink
Show latest reading events by event date, not event creation date.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthNerdus committed Apr 25, 2024
1 parent cb049ea commit 86f1a7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jelu-ui/src/components/Welcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const nonCurrentlyReadingEvents: Array<ReadingEventType> = [ReadingEventType.DRO
const getMyEvents = async () => {
recentEventsIsLoading.value = true
try {
const res = await dataService.myReadingEvents(nonCurrentlyReadingEvents, undefined, undefined, undefined, undefined, undefined, 0, 8)
const res = await dataService.myReadingEvents(nonCurrentlyReadingEvents, undefined, undefined, undefined, undefined, undefined, 0, 8, 'endDate,desc')
const notCurrentlyReading = res.content.filter(e => e.eventType !== ReadingEventType.CURRENTLY_READING)
events.value = notCurrentlyReading
recentEventsIsLoading.value = false
Expand Down

0 comments on commit 86f1a7c

Please sign in to comment.