Method-name fix
This commit is contained in:
1 parent
8b9d47d000
commit
31006031f4
1 file changed
+2
-1
@@ -1,6 +1,7 @@
|
||||
import { NextResponse } from "next/server";
|
||||
import {
|
||||
getSongBooks,
|
||||
searchSongBooksByTitle,
|
||||
createSongBook,
|
||||
} from "@/lib/db/songbook";
|
||||
|
||||
@@ -23,7 +24,7 @@ export async function GET(request: Request) {
|
||||
|
||||
// Wenn ein Suchbegriff übergeben wurde -> Sucheinbindung
|
||||
if (query) {
|
||||
const res = await searchSongBookByTitle(query); // You can enter a limit
|
||||
const res = await searchSongBooksByTitle(query); // You can enter a limit
|
||||
|
||||
if (!res.success) {
|
||||
return NextResponse.json({ message: res.error }, { status: 500 });
|
||||
|
||||
Reference in new issue
Block a user