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/old account remover #9

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft

Conversation

karol-gro
Copy link
Contributor

No description provided.

{
var utcDateThreshold = DateTime.UtcNow.Date.AddDays(-thresholdInDays);
var oldAccounts = await lastUsageRepo.FindLastActivity(token)
.Where(r => r.LastUsage == null || r.LastUsage < utcDateThreshold)

Choose a reason for hiding this comment

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

Wydaje mi się, że będzie usuwać, bo wydaje mi się, że jeśli użytkownik się jeszcze nie zalogował na swoje konto - bo np. miał je stworzone w poprzednim przebiegu - to chyba będzie tu zwracać null właśnie?
Jest może opcja tutaj sprawdzenia daty założenia konta, żeby określić wiek minimalny kont do usunięcia tu?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dobre spostrzeżenie

Też mi to potem przeszło przez głowę i zapisałem sobie todo w pr. Mamy tam dostęp do daty przyznania licencji (vide testowy csv), myślę, że nie usuniemy kont które dostały licencję w ciągu 60 dni

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wrzuciłem poprawkę

@karol-gro karol-gro marked this pull request as draft August 29, 2021 14:26
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.

None yet

2 participants