Add basic CRUD for artists

This commit is contained in:
2025-06-25 12:52:10 +02:00
parent 27535e45f0
commit 887b0ead93
16 changed files with 380 additions and 3 deletions

View File

@ -0,0 +1,21 @@
"use server"
import prisma from "@/lib/prisma";
import { artistSchema } from "@/schemas/artists/artistSchema";
import * as z from "zod/v4";
export async function updateArtist(
values: z.infer<typeof artistSchema>,
id: string
) {
return await prisma.artist.update({
where: {
id: id
},
data: {
displayName: values.displayName,
slug: values.slug,
nickname: values.nickname
}
})
}