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

Ei deaktivoida valmiiksi epäaktiivisia työntekijöitä uudelleen #6012

Merged
merged 3 commits into from
Nov 25, 2024

Conversation

msavolainen-gofore
Copy link
Collaborator

Lisätty työntekijöiden deaktivointiin tarkistus, jossa jätetään jo valmiiksi epäaktiiviset työntekijät käsittelemättä.

@msavolainen-gofore msavolainen-gofore added the bug Korjaus olemassa olevaan toiminnallisuuteen label Nov 22, 2024
@@ -535,6 +535,7 @@ fun Database.Read.getInactiveEmployees(now: HelsinkiDateTime): List<EmployeeId>
SELECT max(ts)
FROM unnest(ARRAY[e.last_login, d.updated, dg.updated]) ts
) < ${bind(now)} - interval '56 days'
AND e.active = true
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe function name could be updated, e.g. getEmployeesToDeactivate, and could be changed to private too. or maybe even deleted and the query moved inside only use place deactivateInactiveEmployees

@msavolainen-gofore msavolainen-gofore merged commit b4a3110 into master Nov 25, 2024
28 of 29 checks passed
@msavolainen-gofore msavolainen-gofore deleted the fix-inactive-employee-check branch November 25, 2024 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Korjaus olemassa olevaan toiminnallisuuteen
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants