Some tests and fixes (TODO fixes)

This commit is contained in:
rudi committed 2026-07-31 14:58:40 +02:00
1 parent a81ea69a8a
commit 3d1448c6aa
4 files changed
+181 -28

No files matched your search

+1 -2
View File
@@ -78,7 +78,7 @@ export async function getSongBookById(id: number) {
* @param limit - Max number of songbooks returned for performance (default: 20).
* @returns Object with success state and an array of matching songbooks.
*/
export async function searchSongBookByTitle(query: string, limit: number = 20) {
export async function searchSongBooksByTitle(query: string, limit: number = 20) {
try {
const cleanQuery = query.trim();
if (!cleanQuery) {
@@ -89,7 +89,6 @@ export async function searchSongBookByTitle(query: string, limit: number = 20) {
where: {
title: {
contains: cleanQuery,
mode: "insensitive", // Textsearch
},
},
select: {