From 1e96f6ea6b5f9f9ea6dd981348e2565a696f53f8 Mon Sep 17 00:00:00 2001 From: Sindre Larsen Date: Tue, 12 Nov 2024 10:47:06 +0100 Subject: [PATCH] =?UTF-8?q?fjerner=20ressurser=20og=20vertk=C3=B8y=20fra?= =?UTF-8?q?=20plan?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/api/lydia-api/plan.ts | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/client/src/api/lydia-api/plan.ts b/client/src/api/lydia-api/plan.ts index 05939cd1f..9d05e4cad 100644 --- a/client/src/api/lydia-api/plan.ts +++ b/client/src/api/lydia-api/plan.ts @@ -1,14 +1,10 @@ import { Plan, - PlanInnhold, PlanInnholdStatus, PlanMal, PlanMalRequest, PlanMalSchema, PlanSchema, - PlanTema, - PlanTemaSchema, - PlanUndertemaSchema, } from "../../domenetyper/plan"; import { TemaRequest, @@ -40,10 +36,10 @@ export const endrePlan = ( saksnummer: string, samarbeidsId: number, body: TemaRequest[], -): Promise => { +): Promise => { return put( `${planPath}/${orgnummer}/${saksnummer}/prosess/${samarbeidsId}`, - PlanTemaSchema.array(), + PlanSchema, body, ); }; @@ -53,10 +49,10 @@ export const endrePlanTema = ( samarbeidsId: number, temaId: number, body: UndertemaRequest[], -): Promise => { +): Promise => { return put( `${planPath}/${orgnummer}/${saksnummer}/prosess/${samarbeidsId}/${temaId}`, - PlanTemaSchema, + PlanSchema, body, ); }; @@ -68,10 +64,10 @@ export const endrePlanStatus = ( temaId: number, undertemaId: number, body: PlanInnholdStatus, -): Promise => { +): Promise => { return put( `${planPath}/${orgnummer}/${saksnummer}/prosess/${samarbeidsId}/${temaId}/${undertemaId}`, - PlanUndertemaSchema, + PlanSchema, body, ); };