Skip to content

Commit

Permalink
feat: sort last events on homepage by event end date #115
Browse files Browse the repository at this point in the history
  • Loading branch information
bayang committed Apr 25, 2024
2 parents 47a5526 + 3e6940f commit 36e483e
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 36e483e

Please sign in to comment.