fix: use AccountExists
This commit is contained in:
parent
ebb19df217
commit
0bbb89e02c
|
@ -279,7 +279,7 @@ func (s AccountServiceDefault) UpdateAccountName(userId uint, firstName string,
|
|||
}
|
||||
|
||||
func (s AccountServiceDefault) UpdateAccountEmail(userId uint, email string, password string) error {
|
||||
exists, _, err := s.EmailExists(email)
|
||||
exists, _, err := s.AccountExists(userId)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue