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

order by same column twice #87

Open
asfapps opened this issue Jul 21, 2023 · 1 comment
Open

order by same column twice #87

asfapps opened this issue Jul 21, 2023 · 1 comment

Comments

@asfapps
Copy link

asfapps commented Jul 21, 2023

Hi,

It seems like line 29 in Rappasoft\LaravelAuthenticationLog\Listener\LogoutListener causes an error with SQL Server due to a double "order by login_id" statement:

$log = $user->authentications()->whereIpAddress($ip)->whereUserAgent($userAgent)->first();

The double statement is generated by the authentications() function in the AuthenticationLoggable trait, due to it having the latest() function already applied.

@ashek1412
Copy link

ashek1412 commented Aug 25, 2023

I am facing the same issue, is there any solution ?

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

No branches or pull requests

2 participants