Revert "fix: use AccountExists"

This reverts commit 0bbb89e02c.
This commit is contained in:
Derrick Hammer 2024-03-19 09:26:36 -04:00
parent 0bbb89e02c
commit 9e52d35d2f
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.AccountExists(userId) exists, _, err := s.EmailExists(email)
if err != nil { if err != nil {
return err return err
} }