I realized that many of my inactive users has not been cleaned yet. So I checked those users and the code.
Those users dont have any time for last_seen_at. So I think in the following line:
they are not detected and cleaned. Am I right? And what can I do?