Some tests and fixes (TODO fixes)
This commit is contained in:
1 parent
a81ea69a8a
commit
3d1448c6aa
4 files changed
+181
-28
No files matched your search
+1
-2
@@ -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: {
|
||||
|
||||
Reference in new issue
Block a user