Fix typescript imprt

This commit is contained in:
2023-12-11 00:16:14 +01:00
parent f6a46f2025
commit c5d8816658
3 changed files with 3 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ useHead({
title: 'Sign my guestbook • Arthur Danjou',
})
const { loggedIn, clear, user } = useUserSession()
const { loggedIn, clear } = useUserSession()
const { data: messages, refresh } = useFetch<Array<GuestbookMessage>>('/api/messages', { method: 'get' })

View File

@@ -14,7 +14,7 @@ const { loggedIn, clear } = useUserSession()
const {
data: talents,
pending,
} = await useFetch<Array<Talent>>('/api/talents', {
} = await useFetch<Array<Talent & { categories: Array<{ category: Category }> }>>('/api/talents', {
method: 'get',
query: {
favorite: isFavorite,
@@ -190,7 +190,7 @@ async function suggest() {
<div class="flex gap-2 z-10">
<UBadge
v-for="category in talent.categories"
:key="`${category.talentId}-${category.categoryId}`"
:key="category.category.slug"
color="primary"
variant="soft"
size="xs"

View File

@@ -33,7 +33,6 @@ export default defineEventHandler(async (event) => {
include: {
categories: {
include: {
talent: true,
category: true,
},
orderBy: {