Skip to content

Commit

Permalink
✨ proper sorting and no more links
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Aug 16, 2024
1 parent cf82d63 commit 9f5c318
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 1 addition & 3 deletions app/components/header/HeaderMain.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<script setup lang="ts">
import { links } from '~/utils/shared'
const { crumbs, actions } = useCrumb()
</script>

<template>
<u-header :links="links">
<u-header>
<template #logo>
<div class="flex items-center">
<logo-bio class="w-12 h-12" />
Expand Down
6 changes: 5 additions & 1 deletion server/api/routes/pen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ const index = defineEventHandler(async (event) => {
include: {
cartridge: {
include: {
shots: true,
shots: {
orderBy: {
date: 'asc',
},
},
},
},
},
Expand Down
3 changes: 3 additions & 0 deletions server/api/routes/shot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ const index = defineEventHandler(async (event) => {
where: {
userId: user.id,
},
orderBy: {
date: 'desc',
},
include: {
cartridge: {
include: {
Expand Down

0 comments on commit 9f5c318

Please sign in to comment.