From ae2871a23a0267372d0839793aa5bb438a7ab5b9 Mon Sep 17 00:00:00 2001 From: Erlend Wiklem Date: Wed, 15 Jan 2025 10:46:05 +0100 Subject: [PATCH] synlighet --- .github/workflows/deploy.yml | 2 +- src/kandidat/kandidatliste/hooks/useSynlighetsevaluering.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2d685f84..7cc84bbf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -45,7 +45,7 @@ jobs: deploy-til-dev: name: Deploy til dev-gcp needs: bygg-og-push-docker-image - if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/geografiKode' + if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/synlighet' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/src/kandidat/kandidatliste/hooks/useSynlighetsevaluering.ts b/src/kandidat/kandidatliste/hooks/useSynlighetsevaluering.ts index f7627d50..38b19241 100644 --- a/src/kandidat/kandidatliste/hooks/useSynlighetsevaluering.ts +++ b/src/kandidat/kandidatliste/hooks/useSynlighetsevaluering.ts @@ -1,11 +1,11 @@ import useSWR from 'swr'; -import { getAPI } from '../../../api/fetcher'; +import { postApi } from '../../../api/fetcher'; import { api } from '../../../felles/api'; const useSynlighetsevaluering = (fødselsnummer: string) => { const { data, error, isLoading } = useSWR( - fødselsnummer ? `${api.synlighet}/evaluering/${fødselsnummer}` : undefined, - getAPI + fødselsnummer ? `${api.synlighet}/evaluering` : undefined, + (url) => postApi(url, { fnr: fødselsnummer }) ); return {