fix: wrong model

This commit is contained in:
Derrick Hammer 2024-01-16 15:42:42 -05:00
parent 6c34b383d7
commit 9cc05b3096
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ func NewAccountService(portal interfaces.Portal) interfaces.AccountService {
func (s AccountServiceImpl) EmailExists(email string) (bool, models.User) {
var user models.User
result := s.portal.Database().Model(&models.Upload{}).Where(&models.User{Email: email}).First(&user)
result := s.portal.Database().Model(&models.User{}).Where(&models.User{Email: email}).First(&user)
return result.RowsAffected > 0, user
}