Some API changes in Song. Added '.trim()' for better string processing

This commit is contained in:
rudi committed 2026-08-03 08:16:55 +02:00
1 parent 61f1eb5a2c
commit 66c9dc28fc
5 files changed
+123 -42

No files matched your search

+1 -1
View File
@@ -122,7 +122,7 @@ export async function createSong(data: { title: string }) {
try{
const song = await prisma.song.create({
data: {
title: data.title
title: data.title.trim()
},
select: {
id: true,