fix: use AccountExists

This commit is contained in:
Derrick Hammer 2024-03-19 09:24:19 -04:00
parent ebb19df217
commit 0bbb89e02c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ func (s AccountServiceDefault) UpdateAccountName(userId uint, firstName string,
} }
func (s AccountServiceDefault) UpdateAccountEmail(userId uint, email string, password string) error { func (s AccountServiceDefault) UpdateAccountEmail(userId uint, email string, password string) error {
exists, _, err := s.EmailExists(email) exists, _, err := s.AccountExists(userId)
if err != nil { if err != nil {
return err return err
} }