Skip to content

fix: parameters in the wrong order when delete duplicates session #15

Merged
riflowth merged 1 commit intocodern-org:mainfrom
urikpro64:main
Jul 5, 2024
Merged

fix: parameters in the wrong order when delete duplicates session #15
riflowth merged 1 commit intocodern-org:mainfrom
urikpro64:main

Conversation

@urikpro64
Copy link
Copy Markdown
Contributor

variables were inserted in the wrong order in the delete duplicate session function

Description

What

The problem is that duplicate sessions are not deleted upon login.

Why

Parameters in the wrong order when authUsecase call DeleteDuplicates from sessionRepository

How

DeleteDuplicates Arrange parameters as (userId, ipAddress, userAgent)
But when called in authUsecase, arrange the parameters as (userId, userAgent, ipAddress)

  • Just change the position of the parameters.

Copy link
Copy Markdown
Member

@riflowth riflowth left a comment

Choose a reason for hiding this comment

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

Good catch! Thanks @urikpro64

@riflowth riflowth merged commit 39212c6 into codern-org:main Jul 5, 2024
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.

2 participants