mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
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:
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user