Skip to content

Fix usages of db. UserEmails.GetPrimaryEmail that shouldn't fail if no email…

Warren Gifford requested to merge emailerrs into master

Created by: dadlerj

… is found

Fixes two instances in which db.User.GetPrimaryEmail is called that shouldn't fail when a primary email is not found:

  • Satisfaction survey submissions
  • GraphQL UserResolver.Email handler

This reverts https://github.com/sourcegraph/sourcegraph/commit/bcb29723056edaf317d865db550ecbdfd7e94c12, and fixes the issue that caused it in the first place

This PR updates the CHANGELOG.md file to describe any user-facing changes.

Merge request reports

Loading