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

Forenkling groq #709

Merged
merged 15 commits into from
Nov 6, 2024
Merged

Forenkling groq #709

merged 15 commits into from
Nov 6, 2024

Conversation

ma10s
Copy link
Contributor

@ma10s ma10s commented Oct 30, 2024

Poc - forenkling og typing. Fortsette, eller tenke annerledes?

relatert til poc ef-sak-frontend
navikt/familie-ef-sak-frontend#2937
som da gjør at vi kan droppe hele denne delen av groq:
(router)
const delmaler: Delmaler = await hentDelmaler(datasett, maalform, avansertDokumentNavn, res);

src/server/routes.ts Outdated Show resolved Hide resolved
@ma10s ma10s marked this pull request as ready for review October 31, 2024 07:08
@ma10s ma10s requested a review from a team as a code owner October 31, 2024 07:08
@charliemidtlyng
Copy link
Contributor

Liker at det er delt opp og at vi har typer på innholdet. Det er litt lettere å forstå hva i alle dager som skjer :D

Comment on lines +178 to +186
async function hentBrevStruktur(
datasett: Datasett,
maalform: Maalform,
avansertDokumentNavn: string,
): Promise<BrevStruktur> {
const brevmeny: Brevmeny = await hentBrevmenyBlokker(datasett, maalform, avansertDokumentNavn);
const flettefelter = await hentFlettefelterMedType(datasett, avansertDokumentNavn);
return { dokument: brevmeny, flettefelter: flettefelter };
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Burde denne skrives om til en arrow-function?

@ma10s ma10s merged commit 879a575 into main Nov 6, 2024
6 checks passed
@ma10s ma10s deleted the forenkling_groq branch November 6, 2024 11:11
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.

3 participants