Skip to content

order by same column twice #87

Open
@asfapps

Description

@asfapps

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions