Skip to content

Commit

Permalink
fjerner ressurser og vertkøy fra plan
Browse files Browse the repository at this point in the history
  • Loading branch information
SiLar92 committed Nov 12, 2024
1 parent c91f7f7 commit 1e96f6e
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions client/src/api/lydia-api/plan.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import {
Plan,
PlanInnhold,
PlanInnholdStatus,
PlanMal,
PlanMalRequest,
PlanMalSchema,
PlanSchema,
PlanTema,
PlanTemaSchema,
PlanUndertemaSchema,
} from "../../domenetyper/plan";
import {
TemaRequest,
Expand Down Expand Up @@ -40,10 +36,10 @@ export const endrePlan = (
saksnummer: string,
samarbeidsId: number,
body: TemaRequest[],
): Promise<PlanTema[]> => {
): Promise<Plan> => {
return put(
`${planPath}/${orgnummer}/${saksnummer}/prosess/${samarbeidsId}`,
PlanTemaSchema.array(),
PlanSchema,
body,
);
};
Expand All @@ -53,10 +49,10 @@ export const endrePlanTema = (
samarbeidsId: number,
temaId: number,
body: UndertemaRequest[],
): Promise<PlanTema> => {
): Promise<Plan> => {
return put(
`${planPath}/${orgnummer}/${saksnummer}/prosess/${samarbeidsId}/${temaId}`,
PlanTemaSchema,
PlanSchema,
body,
);
};
Expand All @@ -68,10 +64,10 @@ export const endrePlanStatus = (
temaId: number,
undertemaId: number,
body: PlanInnholdStatus,
): Promise<PlanInnhold> => {
): Promise<Plan> => {
return put(
`${planPath}/${orgnummer}/${saksnummer}/prosess/${samarbeidsId}/${temaId}/${undertemaId}`,
PlanUndertemaSchema,
PlanSchema,
body,
);
};
Expand Down

0 comments on commit 1e96f6e

Please sign in to comment.