Skip to content

Commit

Permalink
fiiiiiikkkksssss
Browse files Browse the repository at this point in the history
Co-authored-by: Tor Idland <[email protected]>
Co-authored-by: Thomas Sebastian Rognes <[email protected]>
Co-authored-by: Øivind Stensrud <[email protected]>
Co-authored-by: Andreas Nordahl <[email protected]>
  • Loading branch information
5 people committed Feb 13, 2024
1 parent 1e0b423 commit 47ff666
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/api/simpleProxy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { logger } from '@navikt/aap-felles-utils';
import { getSession } from '@navikt/oasis/provider/';
import { getSession } from '@navikt/oasis';
import { randomUUID } from 'crypto';
import { IncomingMessage } from 'http';

Expand Down
6 changes: 5 additions & 1 deletion pages/[uuid]/ettersendelse/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ export const getServerSideProps = beskyttetSide(async (ctx: NextPageContext): Pr
logger.info('getSøknad fra søknad-api feilet:' + e?.toString());
}

const søknaderFraInnsending = await getSøknaderInnsending(bearerToken);
if (ctx.req === undefined) {
throw new Error('Request object is undefined');
}

const søknaderFraInnsending = await getSøknaderInnsending(ctx.req);
const søknadFraInnsending = søknaderFraInnsending.find((søknad) => søknad.innsendingsId === uuid) ?? null;

stopTimer();
Expand Down

0 comments on commit 47ff666

Please sign in to comment.