fix: Use first user for telemetry email (#3761)

This was causing other users email to be sent, which isn't desired.
This commit is contained in:
Kyle Carberry
2022-08-30 14:00:23 -05:00
committed by GitHub
parent f037aad456
commit a410ac42f5

View File

@ -356,7 +356,7 @@ func (r *remoteReporter) createSnapshot() (*Snapshot, error) {
if firstUser.CreatedAt.IsZero() {
firstUser = dbUser
}
if dbUser.CreatedAt.After(firstUser.CreatedAt) {
if dbUser.CreatedAt.Before(firstUser.CreatedAt) {
firstUser = dbUser
}
}