fix: correct SkillsMP marketplace API response mapping for Docker instances (#988)

This commit is contained in:
diegosouzapw
2026-04-11 11:48:13 -03:00
parent 6845ef6bde
commit 770b70a135

View File

@@ -33,7 +33,7 @@ export async function GET(request: Request) {
}
const data = await res.json();
return NextResponse.json({ skills: data.skills || [] });
return NextResponse.json({ skills: data.data?.skills || data.skills || [] });
} catch (err: unknown) {
const error = err instanceof Error ? err.message : String(err);
return NextResponse.json({ error }, { status: 500 });