Skip to content

Commit

Permalink
synlighet
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiklem committed Jan 15, 2025
1 parent 06d30b3 commit ae2871a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/kandidat/kandidatliste/hooks/useSynlighetsevaluering.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit ae2871a

Please sign in to comment.