From 40fda374a80d8c9e2c3d357b69d84bcb119dcb3a Mon Sep 17 00:00:00 2001 From: Pepe Fagoaga Date: Wed, 4 Jun 2025 14:45:18 +0200 Subject: [PATCH] fix: rename payload type --- ui/actions/lighthouse/lighthouse.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/actions/lighthouse/lighthouse.ts b/ui/actions/lighthouse/lighthouse.ts index d94ff7cad6..da51927484 100644 --- a/ui/actions/lighthouse/lighthouse.ts +++ b/ui/actions/lighthouse/lighthouse.ts @@ -56,7 +56,7 @@ export const createLighthouseConfig = async (config: { try { const payload = { data: { - type: "lighthouse-configurations", + type: "lighthouse-configuration", attributes: { name: "OpenAI", model: config.model, @@ -72,6 +72,7 @@ export const createLighthouseConfig = async (config: { body: JSON.stringify(payload), }); console.log(JSON.stringify(payload, null, 2)); + console.log(response); const data = await response.json(); return data; } catch (error) { @@ -121,7 +122,7 @@ export const updateLighthouseConfig = async (config: { // Prepare the request payload following the JSONAPI format const payload = { data: { - type: "lighthouse-configurations", + type: "lighthouse-configuration", id: configId, attributes: { model: config.model,