Skip to content

Commit

Permalink
testing:product testing (#106)
Browse files Browse the repository at this point in the history
testing:product testing
  • Loading branch information
masnann authored Dec 16, 2023
2 parents 4fa5cea + bc2566f commit 26dc0bf
Show file tree
Hide file tree
Showing 2 changed files with 1,552 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/feature/auth/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ func (s *AuthService) Login(email, password, deviceToken string) (*entities.User
}

cekDeviceToken, err := s.repo.CekDeviceTokenByEmail(email)
if err != nil {
return nil, "", err
}
if cekDeviceToken != deviceToken {
_, err := s.repo.UpdateDeviceTokenByID(email, deviceToken)
if err != nil {
Expand Down
Loading

0 comments on commit 26dc0bf

Please sign in to comment.