Skip to content

Commit

Permalink
Bruk styrk08 nav på gamle stillinger (#254)
Browse files Browse the repository at this point in the history
* Bruk styrk08NAV i steden for janzz om man har begge, slik at vi ikke oversetter gamle stilllinger til janzz

* Deploy
  • Loading branch information
joarau authored Nov 6, 2024
1 parent 03db00b commit ef4f3f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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/janzz2'
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/bruk-styrk08Nav-på-gamle-stillinger'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions src/felles/domene/stilling/Stilling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ export const hentTittelFraStilling = (stilling: Stilling) => {

const janzz = stilling.categoryList?.find(({ categoryType }) => categoryType === 'JANZZ')?.name;

const styrk = stilling.categoryList?.find(
const styrk08Nav = stilling.categoryList?.find(
({ categoryType }) => categoryType === 'STYRK08NAV'
)?.name;

return janzz ?? styrk ?? 'Stilling uten valgt jobbtittel';
return styrk08Nav ?? janzz ?? 'Stilling uten valgt jobbtittel';
};

export enum System {
Expand Down

0 comments on commit ef4f3f0

Please sign in to comment.