Skip to content

Commit

Permalink
Prettier check
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobellerbrock committed Dec 2, 2024
1 parent 3dbc9bb commit 285b838
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/db/functions/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export function createNewEvent(event: eventInsertType) {

export function getAllEvents(options?: getAllEventsOptions) {
const orderByClause = options?.descending
? [desc(events.startTime)]
: [asc(events.startTime)]
? [desc(events.startTime)]
: [asc(events.startTime)];

return db.query.events.findMany({
orderBy: orderByClause,
});
Expand Down

0 comments on commit 285b838

Please sign in to comment.