Some refactor

This commit is contained in:
2025-12-28 18:41:31 +01:00
parent ce658849e9
commit eaf822d73a
11 changed files with 202 additions and 36 deletions

View File

@ -0,0 +1,22 @@
"use server"
import { prisma } from "@/lib/prisma"
export async function getSingleArtwork(id: string) {
return await prisma.artwork.findUnique({
where: { id },
include: {
// album: true,
// type: true,
file: true,
gallery: true,
metadata: true,
albums: true,
categories: true,
colors: { include: { color: true } },
// sortContexts: true,
tags: true,
variants: true
}
})
}