Skip to content

Commit

Permalink
fix: event sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
onursagir committed Nov 26, 2024
1 parent a9c82a3 commit ac353fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/strong-trees-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"web": patch
---

Fixed event sorting
2 changes: 1 addition & 1 deletion apps/web/src/services/cms/get-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function getEvents() {
},
})
.from(events)
.orderBy(desc(events.publishedAt))
.orderBy(desc(events.start))
.leftJoin(filesRelatedMorphs, eq(events.id, filesRelatedMorphs.relatedId))
.leftJoin(files, eq(files.id, filesRelatedMorphs.fileId))
.where(
Expand Down

0 comments on commit ac353fe

Please sign in to comment.