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

[Bug]: last_login is null in account_users table #543

Open
jauggy opened this issue Dec 16, 2024 · 0 comments
Open

[Bug]: last_login is null in account_users table #543

jauggy opened this issue Dec 16, 2024 · 0 comments
Labels
bug Something isn't working medium priority

Comments

@jauggy
Copy link
Member

jauggy commented Dec 16, 2024

Describe the Bug

last_login column is not being populated correctly in account_users table

Reproduce the bug

It exists on integration server. In development environment if you login to chobby and then check the database you will see the last_login column is null, but the last_login_timex column is not empty.

Screenshots

No response

Additional context

The code for populated the last_login column looks like this:

    user = %{
      user
      | last_login: round(System.system_time(:second) / 60),
        last_login_timex: Timex.now(),

I'm unsure why we have both these columns. Perhaps last_login should just use Timex.now() ?

@jauggy jauggy added the bug Something isn't working label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working medium priority
Projects
None yet
Development

No branches or pull requests

2 participants