Switch to translatable data
This commit is contained in:
@@ -7,8 +7,10 @@ async function getOwnHunts(userId: number | undefined) {
|
||||
return prisma.hunt.findMany({
|
||||
select: {
|
||||
id: true,
|
||||
name: true,
|
||||
description: true,
|
||||
name_de: true,
|
||||
name_en: true,
|
||||
description_de: true,
|
||||
description_en: true,
|
||||
picture: {
|
||||
select: {
|
||||
url: true
|
||||
@@ -60,8 +62,10 @@ export default defineEventHandler(async (event) => {
|
||||
const others = await prisma.hunt.findMany({
|
||||
select: {
|
||||
id: true,
|
||||
name: true,
|
||||
description: true,
|
||||
name_de: true,
|
||||
name_en: true,
|
||||
description_de: true,
|
||||
description_en: true,
|
||||
picture: {
|
||||
select: {
|
||||
url: true
|
||||
|
||||
Reference in New Issue
Block a user