Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/addopenforotherpostions #1654

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

magsyg
Copy link
Contributor

@magsyg magsyg commented Dec 22, 2024

No description provided.

@magsyg magsyg self-assigned this Dec 22, 2024

def post(self, request: Request) -> Response:
user = request.user
user.recruitment_is_open_to_other_positions = not user.recruitment_is_open_to_other_positions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Foretrekker idempotent requests, kan vi bytte til det? Kan bare legge til at endepunktet krever en ekstra parameter for å si om man er åpen for andre stillinger eller ikke.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Det er et teit forslag, dette er et toggle endepunkt, kan lage 2 endepunkter for å sette hver av de, men det blir litt mer bry en verdi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants