mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-01-14 12:14:42 +01:00
Fix typescript imprt
This commit is contained in:
@@ -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' })
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -33,7 +33,6 @@ export default defineEventHandler(async (event) => {
|
||||
include: {
|
||||
categories: {
|
||||
include: {
|
||||
talent: true,
|
||||
category: true,
|
||||
},
|
||||
orderBy: {
|
||||
|
||||
Reference in New Issue
Block a user