diff --git a/app/api/parameters/route.ts b/app/api/parameters/route.ts index 97bbdb2..f133da8 100644 --- a/app/api/parameters/route.ts +++ b/app/api/parameters/route.ts @@ -4,8 +4,13 @@ import { client, getInfo, setSession } from '@/app/api/utils/common' export async function GET(request: NextRequest) { const { sessionId, user } = getInfo(request) - const { data } = await client.getApplicationParameters(user) - return NextResponse.json(data as object, { - headers: setSession(sessionId), - }) + try { + const { data } = await client.getApplicationParameters(user) + return NextResponse.json(data as object, { + headers: setSession(sessionId), + }) + } + catch (error) { + return NextResponse.json([]) + } }