main: fix build issues

Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
2025-12-27 23:37:46 +03:30
parent df1f8af8e6
commit acbaebb947
3 changed files with 14 additions and 5 deletions
+3 -2
View File
@@ -3,10 +3,11 @@ import { albumDb } from '@/lib/db';
export async function GET(
request: NextRequest,
{ params }: { params: { id: string } }
{ params }: { params: Promise<{ id: string }> }
) {
try {
const album = albumDb.getById(params.id);
const { id } = await params;
const album = albumDb.getById(id);
if (!album) {
return NextResponse.json(
+1
View File
@@ -1,3 +1,4 @@
""
import { NextRequest, NextResponse } from 'next/server';
import { albumDb } from '@/lib/db';
import { Album } from '@/lib/types';