Skip to content

Commit 9f9d3e9

Browse files
Sett siste visning til oppdatert dato stoppet stilling (#272)
* Oppdater siste visningstidspunkt når stilling stoppes * Deploy til dev * Oppdater dato til dagens dato når stilling stoppes * Endre dato til iso-string * Endre dato til iso-string * Endre dato til iso-string
1 parent f443cb4 commit 9f9d3e9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
deploy-til-dev:
4444
name: Deploy til dev-gcp
4545
needs: bygg-og-push-docker-image
46-
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/14a-innsatsgrupper-hovedmål'
46+
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/sett-siste-visning-til-oppdatert-dato-stoppet-stilling'
4747
runs-on: ubuntu-latest
4848
steps:
4949
- uses: actions/checkout@v3

src/stilling/stilling/adReducer.ts

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
SET_NAV_IDENT,
1919
SET_REPORTEE,
2020
SET_UPDATED_BY,
21+
SET_EXPIRATION_DATE,
2122
} from './adDataReducer';
2223
import {
2324
hasValidationErrors,
@@ -478,6 +479,7 @@ function* publishAd(): Generator<unknown, any, any> {
478479
function* stopAd() {
479480
yield put({ type: SET_ADMIN_STATUS, status: AdminStatus.Done });
480481
yield put({ type: SET_AD_STATUS, status: Status.Stoppet });
482+
yield put({ type: SET_EXPIRATION_DATE, expires: new Date().toISOString() });
481483
yield saveRekrutteringsbistandStilling();
482484
}
483485

0 commit comments

Comments
 (0)