Do not return an error if the user session is not found

This commit is contained in:
Frédéric Guillot 2018-04-09 21:52:24 -07:00
parent 02ba735ba9
commit 15202b8675
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ func (s *Storage) UserSessionByToken(token string) (*model.UserSession, error) {
)
if err == sql.ErrNoRows {
return nil, fmt.Errorf("user session not found: %s", token)
return nil, nil
} else if err != nil {
return nil, fmt.Errorf("unable to fetch user session: %v", err)
}