mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08: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