Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skriver om fagsakYtelsesType til nytt kodeverk #6999

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

thomashwi
Copy link
Collaborator

No description provided.

@thomashwi thomashwi requested a review from a team as a code owner January 21, 2025 15:12
@@ -17,6 +19,23 @@ const getAxiosHttpClientApi = () => {
return config;
});

/*
* Interceptor for å sjekke alle api resonser for kodeverk-obekter og konverttere dem til nye kodeverkstrenger
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dette er jo den viktigste endringen? 😄

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ja :)


const kodeverkSomSkalSkrivesOm: string[] = Object.keys(KodeverkTypeV2);

export const konverterKodeverkTilKodeSelektivt = (data: any, erTilbakekreving: boolean) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hva er forskjellen på denne og ackages/v2/lib/src/kodeverk/konverterKodeverkTilKode.ts?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Den vil kun konvertere de kodeverktypene som er angitt i kodeverSomSkalSkrivesOm arrayet, som henter kodeverkene fra KodeverkTypeV2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants